git server test

This commit is contained in:
2026-09-07 19:17:16 +08:00
parent af9b9ef5a9
commit 574f150565
3 changed files with 70 additions and 0 deletions
+36
View File
@@ -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;
}
}