git.swarmlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.3 KiB

#LoadModule auth_pubtkt_module libexec/apache/mod_auth_pubtkt.so
#RUN echo "LoadModule auth_pubtkt_module /usr/lib/apache2/modules/mod_auth_pubtkt.so">>/etc/apache2/mods-enabled/auth_pubtkt.load
<VirtualHost *:443>
ServerName git.swarmlab.io
SSLEngine On
SSLCertificateFile /opt/ssl/cert.pem
SSLCertificateKeyFile /opt/ssl/key.private.pem
SSLCertificateChainFile /opt/ssl/fullchain.pem
LogLevel rewrite:trace3
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLProxyEngine on
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
ProxyPass / https://git.swarmlab.io:3001/ nocanon
ProxyPassReverse / https://git.swarmlab.io:3001/
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
#RequestHeader set X-WEBAUTH-USER %{REMOTE_USER}e
#RequestHeader set X-WEBAUTH-EMAIL %{REMOTE_EMAIL}e
#
<Location />
ProxyPass https://git.swarmlab.io:3001/
ProxyPassReverse https://git.swarmlab.io:3001/
#RequestHeader set X-WEBAUTH-USER %{REMOTE_USER}s
#RewriteEngine On
#RewriteRule .* - [E=PROXY_USER:%{LA-U:REMOTE_USER},NS]
#RequestHeader set X-WEBAUTH-USER "%{REMOTE_USER}e"
#RequestHeader set X-REMOTE-USER %{REMOTE_USER}s
</Location>
</VirtualHost>