Hi
I am running gitlab in docker. Here is my setup:
cloudflair ↔ apache SSL proxy pass ↔ gitlab docker
I am able to push code if I am in office. If i am outside, I got “remote: You are not allowed to push code to this project.”
Here is my apache setup:
<VirtualHost *:443>
SSLEngine on
Include /etc/letsencrypt/options-ssl-apache.conf
RewriteEngine On
ServerAdmin peter@q.hk
ServerName gitlab.q.hk
SSLProxyEngine On
SSLProxyVerify none
SSLProxyCheckPeerName off
SSLProxyCheckPeerCN off
SSLProxyCheckPeerExpire off
ProxyPass / https://192.168.20.111/
ProxyPassReverse / https://192.168.20.111/
SSLCertificateFile /etc/letsencrypt/live/q.hk-wildcard/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/q.hk-wildcard/privkey.pem
RemoteIPHeader CF-Connecting-IP
ErrorLog ${APACHE_LOG_DIR}/error.gitlab.q.hk.log
CustomLog ${APACHE_LOG_DIR}/access.gitlab.q.hk.log combined
</VirtualHost>
thanks