Welcome to akivili.wiki
+This is a placeholder for the content of the wiki.
+From 574f1505652e817cb3938e1d0207e356df0c21b7 Mon Sep 17 00:00:00 2001 From: StLuoyue <904206729@qq.com> Date: Mon, 7 Sep 2026 19:17:16 +0800 Subject: [PATCH] git server test --- app.conf | 36 ++++++++++++++++++++++++++++++++++++ docker-compose.yml | 20 ++++++++++++++++++++ index.html | 14 ++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 app.conf create mode 100644 docker-compose.yml create mode 100644 index.html diff --git a/app.conf b/app.conf new file mode 100644 index 0000000..356124f --- /dev/null +++ b/app.conf @@ -0,0 +1,36 @@ +server { + listen 80; + server_name akivili.wiki; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + return 301 https://$host$request_uri; + } +} + +server { + listen 443 ssl; + server_name akivili.wiki; + ssl_certificate /etc/letsencrypt/live/akivili.wiki/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/akivili.wiki/privkey.pem; + + root /var/www/html; + index index.html; +} + +server { + listen 80; + server_name akivili.wiki; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c4b9989 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +services: + nginx: + image: nginx:latest + container_name: nginx + ports: + - "80:80" + - "443:443" + volumes: + - ./www:/usr/share/nginx/html + - ./nginx/conf.d:/etc/nginx/conf.d + - ./certbot/www:/var/www/certbot + - ./certificates:/etc/letsencrypt + + certbot: + image: certbot/certbot + container_name: certbot + volumes: + - ./certbot/www:/var/www/certbot + - ./certificates:/etc/letsencrypt + entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" diff --git a/index.html b/index.html new file mode 100644 index 0000000..aa98933 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + +
+ + +This is a placeholder for the content of the wiki.
+