fix: replace heredocs with file-based nginx config in pipeline
ci/woodpecker/tag/build Pipeline was successful

This commit is contained in:
becomer
2026-07-03 16:05:36 +08:00
parent 4da041ac12
commit 4ede861595
3 changed files with 38 additions and 39 deletions
+16
View File
@@ -0,0 +1,16 @@
location ^~ / {
proxy_pass http://10.10.10.128:8884/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port $server_port;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;
add_header Cache-Control no-cache;
proxy_ssl_server_name off;
proxy_ssl_name $proxy_host;
}
+19
View File
@@ -0,0 +1,19 @@
server {
listen 80 ;
server_name xiaozhushou.eu.cc;
index index.php index.html index.htm default.php default.htm default.html;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log /www/sites/xiaozhushou/log/access.log main;
error_log /www/sites/xiaozhushou/log/error.log;
location ^~ /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
include /www/sites/xiaozhushou/proxy/*.conf;
}