mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 08:05:57 +02:00
Added
This commit is contained in:
26
wger/rootfs/etc/nginx/servers/nginx.conf
Normal file
26
wger/rootfs/etc/nginx/servers/nginx.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
root /home/wger;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
root /home/wger;
|
||||
try_files $uri /src/wger/core$uri /mnt$uri /src/wger/software$uri =404;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
root /home/wger;
|
||||
}
|
||||
|
||||
# Increase max body size to allow for video uploads
|
||||
client_max_body_size 100M;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user