worker_processes auto; events { worker_connections 1024; } http { server { listen 4200; server_name digitepa_front; #ssl_certificate /etc/nginx/ssl/www.epa.apside.com.crt; #ssl_certificate_key /etc/nginx/ssl/www.epa.apside.com.key; include /etc/nginx/mime.types; location / { root /usr/share/nginx/html; try_files $uri $uri/ /index.html; } location /api { proxy_pass http://digitepa_keycloak:8080/; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_buffering off; proxy_set_header Accept-Encoding ""; } location /auth { proxy_pass http://digitepa_back:44393/; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_buffering off; proxy_set_header Accept-Encoding ""; } } }