diff --git a/README.md b/README.md index 4a1c29a..d5737c8 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,67 @@ This docker compose run portainer on docker ## Certificats -Copy .crt and .key on `/home/docker/certs/` +Copy crt and key files on `/home/docker/certs/` ## Run ```bash docker compose up -d ``` + +## Apache +### http-portainer.conf +``` +DocumentRoot "/var/www/html" +ServerName portainer.gmolab.net +ServerAlias portainer +CustomLog logs/portainer_access_log common +ErrorLog logs/portainer_error_log + +# Redirect http to https +Redirect / https://portainer.gmolab.net/ + + + Options FollowSymLinks + AllowOverride None + Require all granted + + Options FollowSymLinks + AllowOverride None + Require all granted + +SSLProxyEngine On +ProxyPreserveHost On +ProxyRequests off +ProxyPass "/" "https://127.0.0.1:9443/" +ProxyPassReverse "/" "https://127.0.0.1:9443/" +``` ## Access -https://:9443.gmolab.net +https://portainer.gmolab.net ## Changelog ### v1.0 - 2024-11-11