github.com/pelicanplatform/pelican@v1.0.5/web_ui/frontend/dev/nginx.conf (about) 1 user nginx; 2 worker_processes auto; ## Default: 1 3 worker_rlimit_nofile 8192; 4 5 error_log /var/log/nginx/error.log notice; 6 pid /var/run/nginx.pid; 7 8 events { 9 worker_connections 4096; ## Default: 1024 10 } 11 12 http { 13 include /etc/nginx/mime.types; 14 default_type application/octet-stream; 15 16 index index.html index.htm index.php; 17 18 server { 19 listen 8443; 20 21 location /api { 22 proxy_read_timeout 300s; 23 proxy_connect_timeout 10s; 24 proxy_set_header X-Real-IP $remote_addr; 25 proxy_pass https://host.docker.internal:8444; 26 } 27 28 location /view { 29 proxy_read_timeout 300s; 30 proxy_connect_timeout 10s; 31 proxy_set_header X-Real-IP $remote_addr; 32 proxy_pass http://host.docker.internal:3000; 33 } 34 35 gzip on; 36 gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; 37 } 38 }