From 550c0d9a7b5bd27206556231f1a9786dfb37f1db Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Sat, 23 Aug 2025 08:18:13 +0200 Subject: [PATCH] config behind a proxy or not --- README.md | 12 ++++++++---- docker-compose.yaml | 13 ++++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e39cc5d..132f89e 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,8 @@ docker run --rm -v /home/docker/portainer/data:/data portainer/helper-reset-pass SSLProxyEngine On ProxyPreserveHost On ProxyRequests off - ProxyPass "/" "https://127.0.0.1:9443/" - ProxyPassReverse "/" "https://127.0.0.1:9443/" + ProxyPass "/" "http://127.0.0.1:9000/" + ProxyPassReverse "/" "https://127.0.0.1:9000/" ``` ## Access @@ -86,7 +86,11 @@ To TEST !! (one year) https://omar2cloud.github.io/rasp/psswd/ https://docs.portainer.io/admin/settings/authentication -## Changelog -### v1.0 - 2024-11-11 +### Changelog +### [1.0.1] - 2025-08-23 +#### Added +- config behind a proxy or not +--- +### [1.0.0] - 2024-11-11 #### Added - initial version by [GMo](mailto:gilles.mouchet@gmail.com) diff --git a/docker-compose.yaml b/docker-compose.yaml index 78a8a78..c8d1f80 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,13 +1,20 @@ services: portainer: + # if behind proxy + command: --trusted-origins=portainer.gmolab.net + # without proxy #command: --sslcert /certs/gmolab.net.crt --sslkey /certs/gmolab.net.key - command: --sslcert /certs/gmotech.net.crt --sslkey /certs/gmotech.net.key + #command: --sslcert /certs/gmotech.net.crt --sslkey /certs/gmotech.net.key image: portainer/portainer-ee:latest container_name: portainer ports: - - 9443:9443 + # if behind proxy + - 9000:9000 + # without proxy + #- 9443:9443 volumes: - - /home/docker/certs:/certs + # without proxy + #- /home/docker/certs:/certs - /home/docker/portainer/data:/data - /var/run/docker.sock:/var/run/docker.sock restart: always