0052
This commit is contained in:
1 parent
d664326648
commit
612cafe5ad
6 files changed
+22
-7
No files matched your search
@@ -48,6 +48,15 @@ server {
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
# 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;
|
||||
|
||||
Reference in new issue
Block a user