I am *not* running this inside the Idempiere docker container, I don't know if that's why this config isn't working
server {
server_name
erp.domain.com;
listen 80;
return 301 https://$server_name$request_uri;
}
server {
server_name
erp.domain.com ;
listen 443 ssl http2;
ssl on;
ssl_certificate /etc/letsencrypt/live/
erp.domain.com/fullchain.pem ;
ssl_certificate_key /etc/letsencrypt/live/
erp.domain.com/privkey.pem ;
ssl_dhparam /etc/letsencrypt/live/
erp.domain.com/dhparam.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 1h;
add_header Strict-Transport-Security "max-age=15768000" always;
add_header X-Frame-Options "SAMEORIGIN";
# exposing the whole iDempiere with / is NOT RECOMMENDED, just for test sites
# location / {
# proxy_set_header X-Forwarded-Host $host;
# proxy_set_header X-Forwarded-Server $host;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Host $http_host;
# proxy_pass
http://localhost:8080/;
# proxy_http_version 1.1;
# }
# Proxy the /webui for the zk interface
# you can do the same as below for ADInterface, wstore or other services if required
location /webui {
proxy_pass
http://localhost:8080/webui;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Proxy the Atmosphere server push with no buffering and read timeout
location /webui/zkau/comet {
proxy_pass
http://localhost:8080/webui/zkau/comet;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 300;
}
# Proxy the websocket server push, just needed if you're using this approach
# location /webui/serverpush {
# proxy_pass
http://localhost:8080/webui/serverpush;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "Upgrade";
# }
client_max_body_size 20M;
}