legacy/conf/nginx/nginx.conf

42 lines
901 B
Nginx Configuration File
Raw Normal View History

2023-05-16 22:20:28 +02:00
user nobody nobody;
worker_processes 5;
error_log logs/error.log;
pid logs/nginx.pid;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
}
http {
include mime.types;
include /etc/nginx/proxy.conf;
index index.html index.htm;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
gzip on;
server_names_hash_bucket_size 128; # this seems to be required for some vhosts
server {
listen 80;
2023-05-16 23:02:20 +02:00
location ~ ^/(api|admin)/ {
2023-05-16 22:20:28 +02:00
proxy_pass http://back;
}
2023-05-16 22:57:23 +02:00
location / {
root /var/www/html;
2023-05-16 22:20:28 +02:00
try_files $uri $uri/ index.html;
}
2023-05-16 22:57:23 +02:00
location ~ ^/\. {
deny all;
}
2023-05-16 22:20:28 +02:00
}
}