update
This commit is contained in:
1 parent
65fd41419a
commit
56d536289d
2 files changed
+7
-1
No files matched your search
+2
-1
@@ -2,7 +2,7 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name images.gogongxt.com;
|
server_name images.gogongxt.com;
|
||||||
location / {
|
location / {
|
||||||
client_max_body_size 512M;
|
client_max_body_size 55m;
|
||||||
proxy_pass http://127.0.0.1:61021;
|
proxy_pass http://127.0.0.1:61021;
|
||||||
proxy_set_header Connection $http_connection;
|
proxy_set_header Connection $http_connection;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
@@ -16,4 +16,5 @@ server {
|
|||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/images.gogongxt.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/images.gogongxt.com/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/images.gogongxt.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/images.gogongxt.com/privkey.pem;
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,11 @@ server {
|
|||||||
root /home/gogongxt/tools;
|
root /home/gogongxt/tools;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
# 禁止访问 .git / .env 等隐藏文件(放行 ACME 校验)
|
||||||
|
location ~ /\.(?!well-known) {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
# 静态文件直接返回
|
# 静态文件直接返回
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
|
|||||||
Reference in new issue
Block a user