mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 00:55:58 +02:00
correct nginx
This commit is contained in:
1
portainer/rootfs/etc/nginx/servers/.gitkeep
Normal file
1
portainer/rootfs/etc/nginx/servers/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
Without requirements or design, programming is the art of adding bugs to an empty text file. (Louis Srygley)
|
||||
@@ -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/;
|
||||
}
|
||||
}
|
||||
17
portainer/rootfs/etc/nginx/templates/ingress.gtpl
Normal file
17
portainer/rootfs/etc/nginx/templates/ingress.gtpl
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user