diff options
| author | Claude <noreply@anthropic.com> | 2026-08-05 23:14:29 -0500 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-08-05 23:14:29 -0500 |
| commit | 9f7c9f2f31acd7bc544dd988af1c8c2fe63ec504 (patch) | |
| tree | 6d7ab2a965c3e138a56c625197658ef2b324b045 /internal/tmpl/nginx-app.conf.tmpl | |
Initial commit of skiff scaffolding
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; + } +} |
