Compare commits
No commits in common. "e91e293dda6edef0a32d3c9785f9b2995cee8206" and "920c9db231a50125f8178c3382551fd81207716f" have entirely different histories.
e91e293dda
...
920c9db231
3 changed files with 7 additions and 19 deletions
12
appinfo.yml
12
appinfo.yml
|
|
@ -1,15 +1,9 @@
|
||||||
version: 3
|
mainunit: nginx.service
|
||||||
mainunit: nginx
|
mainunitfile: nginx.service.j2
|
||||||
enableunits:
|
|
||||||
- nginx.service
|
|
||||||
templatefiles:
|
templatefiles:
|
||||||
- src: nginx.conf.j2
|
- src: nginx.conf.j2
|
||||||
dest: ~/nginx.conf
|
dest: ~/nginx.conf
|
||||||
- src: nginx.service.j2
|
backuptype: none
|
||||||
dest: ~/.config/systemd/user/nginx.service
|
|
||||||
plugins:
|
|
||||||
- type: builtin
|
|
||||||
name: backups_none
|
|
||||||
configdefinition:
|
configdefinition:
|
||||||
"$id": "nginx config"
|
"$id": "nginx config"
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#"
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
||||||
|
|
|
||||||
|
|
@ -83,8 +83,8 @@ http {
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
|
|
||||||
{# allow large file uploads, currently 50 gig. We expect the app to block if needed #}
|
{# allow large file uploads, currently 500 meg. Should be increased if we really need big uploads #}
|
||||||
client_max_body_size 50000M;
|
client_max_body_size 500M;
|
||||||
|
|
||||||
# Set headers
|
# Set headers
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|
@ -92,11 +92,6 @@ http {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
{# We do not buffer, otherwise we might end up string the full client_max_body size as a temp file. Let the upstream handle it #}
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_request_buffering off;
|
|
||||||
client_body_buffer_size 1024k;
|
|
||||||
|
|
||||||
{# enable websockets: http://nginx.org/en/docs/http/websocket.html #}
|
{# enable websockets: http://nginx.org/en/docs/http/websocket.html #}
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Podman Compose based service
|
Description=Podman Compose based service
|
||||||
After=network.target
|
After=network.target
|
||||||
PartOf={{ mainunit }}
|
|
||||||
|
|
||||||
# Nginx is not started with podman compose
|
# Nginx is not started with podman compose
|
||||||
# We start it on the host network, so we can access the ports exposed on localhost
|
# We start it on the host network, so we can access the ports exposed on localhost
|
||||||
|
|
@ -20,4 +19,4 @@ Restart=always
|
||||||
WorkingDirectory={{ homedir }}
|
WorkingDirectory={{ homedir }}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy={{ mainunit }}
|
WantedBy=default.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue