roles/gitea: Add HTTP -> HTTPS redirect

jenkins-master
Dustin 2018-06-04 19:30:43 -05:00
parent d97dbaa189
commit a7ebe3b2ae
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
# vim: set ft=apache :
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule /.* https://%{SERVER_NAME}$0
Header always set \
Strict-Transport-Security "max-age=63072000; includeSubDomains"
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://localhost:3000/