diff options
Diffstat (limited to 'internal/tmpl/nginx-app.conf.tmpl')
| -rw-r--r-- | internal/tmpl/nginx-app.conf.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/tmpl/nginx-app.conf.tmpl b/internal/tmpl/nginx-app.conf.tmpl new file mode 100644 index 0000000..b55a332 --- /dev/null +++ b/internal/tmpl/nginx-app.conf.tmpl @@ -0,0 +1,15 @@ +upstream {{.Name}}_upstream { + server {{.IP}}:{{.Port}}; +} + +server { + listen 80; + server_name {{.ServerName}}; + + location / { + proxy_pass http://{{.Name}}_upstream; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +} |
