/mattermost.05ten.se-le-ssl.conf Secret
Created
January 15, 2020 20:03
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
ServerName mattermost.05ten.se | |
ProxyPreserveHost On | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR] | |
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR] | |
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC] | |
RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L] | |
<Location /> | |
Require all granted | |
ProxyPass http://127.0.0.1:8065/ | |
ProxyPassReverse http://127.0.0.1:8065/ | |
ProxyPassReverseCookieDomain 127.0.0.1 mattermost.05ten.se | |
</Location> | |
# Generated by Certbot | |
SSLCertificateFile /etc/letsencrypt/live/mattermost.05ten.se/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/mattermost.05ten.se/privkey.pem | |
Include /etc/letsencrypt/options-ssl-apache.conf | |
</VirtualHost> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment