I got into the nginx-proxy container like this: docker exec -i -t services_global-nginx-proxy_1 /bin/bash
Seems like /etc/nginx/conf.d/default.conf inside nginx-proxy container is the same to the file /opt/easyengine/services/nginx-proxy/conf.d/default.conf
when i edit them and restart nginx (sudo ee service restart nginx-proxy) all the changes are reverted
I also editted another file inside nginx-proxy container
nano /etc/nginx/conf.d/portainer.dockercenter.de-redirect.conf
after restarting nginx the content is still there (the location proxy_pass inside server 443 block), but when i go to the link portainer.dockercenter.de it still point to the original site.
portainer.dockercenter.de-redirect.conf
server {
listen 80;
server_name www.portainer.dockercenter.de;
return 301 https://portainer.dockercenter.de$request_uri;
}
server {
listen 443;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256$
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_certificate /etc/nginx/certs/portainer.dockercenter.de.crt;
ssl_certificate_key /etc/nginx/certs/portainer.dockercenter.de.key;
location / {
proxy_pass http://dockercenter.de:9000/;
}
server_name www.portainer.dockercenter.de;
return 301 https://portainer.dockercenter.de$request_uri;
}
any other idea?