correct nginx

This commit is contained in:
Alexandre
2021-05-06 14:15:21 +02:00
parent d399906cc4
commit 95f4220448
5 changed files with 42 additions and 46 deletions

View File

@@ -0,0 +1 @@
Without requirements or design, programming is the art of adding bugs to an empty text file. (Louis Srygley)

View File

@@ -1,14 +0,0 @@
server {
listen %%interface%%:1337 default_server;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
location / {
proxy_pass http://backend/;
}
location /portainer/ws/ {
proxy_pass http://backend/ws/;
}
}

View File

@@ -0,0 +1,17 @@
server {
listen {{ .interface }}:{{ .port }} default_server;
server_name vue.torrent;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
location / {
root /vuetorrent/public/;
}
location /api {
proxy_pass {{ .protocol }}://backend;
http2_push_preload on;
client_max_body_size 10M;
}
}