mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-07 12:24:52 +01:00
21 lines
513 B
Groovy
21 lines
513 B
Groovy
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/;
|
|
# avoid cache
|
|
expires -1; # kill cache
|
|
proxy_no_cache 1; # don't cache it
|
|
proxy_cache_bypass 1; # even if cached, don't try to use it
|
|
}
|
|
|
|
location /api {
|
|
proxy_pass {{ .protocol }}://backend;
|
|
client_max_body_size 10M;
|
|
}
|
|
|
|
}
|