mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update nginx.conf
This commit is contained in:
@@ -1,15 +1,9 @@
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.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 compression
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
@@ -21,6 +15,9 @@ server {
|
|||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-Content-Type-Options "nosniff" 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
|
# API proxy - forward /api/ requests to API server
|
||||||
# IMPORTANT: ^~ modifier prevents regex matches (like .png) from taking precedence
|
# IMPORTANT: ^~ modifier prevents regex matches (like .png) from taking precedence
|
||||||
location ^~ /api/ {
|
location ^~ /api/ {
|
||||||
|
|||||||
Reference in New Issue
Block a user