mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-31 08:57:42 +01:00
Update nginx.conf
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
include /etc/nginx/includes/server_params.conf;
|
||||
include /etc/nginx/includes/proxy_params.conf;
|
||||
|
||||
# Allow large file uploads (for database migration)
|
||||
client_max_body_size 500M;
|
||||
|
||||
# Gzip compression
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
@@ -21,6 +15,9 @@ server {
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
|
||||
# Allow large file uploads (for database migration)
|
||||
client_max_body_size 500M;
|
||||
|
||||
# API proxy - forward /api/ requests to API server
|
||||
# IMPORTANT: ^~ modifier prevents regex matches (like .png) from taking precedence
|
||||
location ^~ /api/ {
|
||||
|
||||
Reference in New Issue
Block a user