auto-deploy-demo/server/templates/nginx/main.conf.tpl

29 lines
818 B
Smarty

# Auto-generated by auto-deploy-demo
# Do not edit manually
server {
listen {{PORT}};
server_name {{SERVER_NAME}};
#
location / {
proxy_pass http://127.0.0.1:{{MANAGER_PORT}};
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 X-Forwarded-Proto $scheme;
}
# API接口
location /api/ {
proxy_pass http://127.0.0.1:{{MANAGER_PORT}}/api/;
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 X-Forwarded-Proto $scheme;
}
# -
{{PROJECT_LOCATIONS}}
}