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;
}
}
+20
View File
@@ -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;'"
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>akivili.wiki</title>
</head>
<body>
<div id="content">
<h1>Welcome to akivili.wiki</h1>
<p>This is a placeholder for the content of the wiki.</p>
</div>
</body>
</html>