New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Https issue behind reverse proxy (traefik) #5
Comments
bump |
1 similar comment
bump |
I solved this with following options in .env I generated self-signed certificates and mounted them as volumes with the following docker-compose in your reverse proxy, such as nginx and assuming its running on same host: |
@vkhatuwala Was this the only way you got it? I want to use reverse proxy with Nginx. |
@cairoapcampos I am also using nginx reverse proxy as per my example. |
@vkhatuwala I did the same as you and got the error: 401 Unauthorized. Did you set SERVER_NAME? |
I found that when I disabled |
@xfouloux said:
Hiya! We've put it into our internal documentation to copy-paste-run the following lines in the docker console for the container after it's deployed and running: sed -i "s|AuthFormProvider file|AuthFormProvider file ldap|g" /etc/apache2/sites-available/gestioip.conf
sed -i "s|AuthUserFile /etc/apache2/users-gestioip|AuthUserFile /usr/share/gestioip/etc/apache/users-gestioip|g" /etc/apache2/sites-available/gestioip.conf
sed -i "s|ErrorDocument 401 /login/login.html|ErrorDocument 401 /gestioip/login/login.html|g" /etc/apache2/sites-available/gestioip.conf
sed -i "s|ErrorDocument 403 /errors/error403.html|ErrorDocument 403 /gestioip/errors/error403.html|g" /etc/apache2/sites-available/gestioip.conf
sed -i "s|ErrorDocument 404 /errors/error404.html|ErrorDocument 404 /gestioip/errors/error404.html|g" /etc/apache2/sites-available/gestioip.conf
sed -i "s|ErrorDocument 500 /errors/error500.html|ErrorDocument 500 /gestioip/errors/error500.html|g" /etc/apache2/sites-available/gestioip.conf
sed -i "s|AuthFormLogoutLocation /login/logout.cgi|AuthFormLogoutLocation /gestioip/login/logout.cgi|g" /etc/apache2/sites-available/gestioip.conf
service apache2 restart This is basically updating the gestioip.conf file to more closely reflect its original self when USE_SSL was set to No before enabling it to Yes. There's a few other lines in the No version that we'd didn't pull over, like I hope that can help someone else out there that's fighting with Docker + GestioIP + LDAP + SSL + Reverse Proxy. |
If you are running this application behind a reverse proxy, that is also handling SSL, then you can just change the URL writing. For this to happen, just change the default variable called "server_proto" to "https" like in the example below. This configuration shouldn't have an impact on, the Apache Web server itself. #/var/www/html/gestioip/modules/GestioIP.pm
|
Hello,
anyone successfully put this behind reverse proxy ?
I'm puting it behind traefik, but as traefik entrypoint is HTTPS and gip is HTTP there is issues as the generated code call css in forced HTTP
i tried to put the container in SSL, but then i have login issues (using LDAP)
is there something doable around that ?
I think the issue is in the code, calling files with a leading "/" instead of "//" or nothing even
would work
Thanks
The text was updated successfully, but these errors were encountered: