1330
This commit is contained in:
1 parent
f172e6c15b
commit
ad47a6dddd
2 files changed
+19
-1
No files matched your search
@@ -12,7 +12,6 @@ services:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8016:8016"
|
||||
- "1313:1313"
|
||||
volumes:
|
||||
# Hugo 博客目录(必须)- 映射宿主机博客根目录到容器内 /blog
|
||||
- ..:/blog
|
||||
@@ -54,6 +53,7 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "1313:1313"
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Hugo 预览 HTTPS 代理
|
||||
server {
|
||||
listen 1313 ssl http2;
|
||||
server_name post.usj.cc;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
|
||||
access_log off;
|
||||
|
||||
location / {
|
||||
proxy_pass http://write-server:1313;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user