This commit is contained in:
Vaica committed 2026-06-22 13:01:37 +08:00
1 parent f99ddec735
commit 8cd35ca127
9 files changed
+263 -45

No files matched your search

@@ -48,23 +48,6 @@ server {
add_header Content-Type text/plain;
}
# Hugo 预览代理(不需要认证)
# Hugo 静态资源
location ~ ^/(css|js|font|fonts|image/background|image/avatar|image/reward|emotion)/ {
auth_request off;
proxy_pass http://write-server:1313;
proxy_set_header Host $host;
}
# Hugo 页面预览
location /preview/ {
auth_request off;
rewrite ^/preview/(.*)$ /$1 break;
proxy_pass http://write-server:1313;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
# 所有其他请求通过 auth_request 验证
location / {
auth_request /auth/internal;