mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
fix: nginx conf
This commit is contained in:
parent
8dead13cc2
commit
d85c3ec323
|
@ -5,18 +5,19 @@ events {
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
server_tokens off;
|
||||||
include mime.types;
|
include mime.types;
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for" "$request_id"';
|
||||||
|
|
||||||
server_tokens off;
|
access_log /dev/stdout main;
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
client_max_body_size 200m;
|
client_max_body_size 200m;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_comp_level 3;
|
gzip_comp_level 3;
|
||||||
gzip_min_length 1000;
|
gzip_min_length 1000;
|
||||||
|
@ -27,9 +28,12 @@ http {
|
||||||
application/x-javascript
|
application/x-javascript
|
||||||
text/xml
|
text/xml
|
||||||
text/javascript;
|
text/javascript;
|
||||||
|
|
||||||
|
add_header X-Request-Id $request_id;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
|
include conf.d/api.conf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user