Skip to content
Snippets Groups Projects
Commit f14533cf authored by jurgenhaas's avatar jurgenhaas
Browse files

Test websocket configuration

parent 09a2f549
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,11 @@
# http://doc.gitlab.com/ce/api/projects.html#get-single-project
AllowEncodedSlashes NoDecode
<Location /-/cable>
ProxyPass ws://127.0.0.1:8181/-/cable
ProxyPassReverseCookieDomain 127.0.0.1 {{ gitlab_domain }}
</Location>
<Location />
Require all granted
......@@ -36,6 +41,11 @@
# http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/-/cable [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://127.0.0.1:8181%{REQUEST_URI} [P,QSA,L]
#Don't escape encoded characters in api requests
RewriteCond %{REQUEST_URI} ^/api/v4/.*
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA,NE]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment