taigaio / taiga-docker

Mozilla Public License 2.0
1.22k stars 305 forks source link

[Q] Apache2 proxy #53

Closed TheBlapse closed 2 years ago

TheBlapse commented 2 years ago

Could anyone help me setting up apache2 reverse proxy my current config is:

ProxyPass "/" "http://localhost:9000/" connectiontimeout=5 timeout=30 keepalive=on
ProxyPassReverse "/" "http://localhost:9000/"

RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:9000//$1" [P,L]

ProxyPass "/events" "ws://localhost:9000/events" connectiontimeout=5 timeout=30 keepalive=on
ProxyPassReverse "/events" "ws://localhost:9000/events"

but It's giving an error while signing up.

image

angular.js:14195 WebSocket error: [object Event]
(anonymous) @ angular.js:14195
e.onError @ app.js:3565
t @ lodash.js:4949
value @ elements.js:1
value @ elements.js:1
value @ elements.js:1
o @ elements.js:1
v @ elements.js:1
error (async)
a @ elements.js:1
value @ elements.js:1
value @ elements.js:1
value @ elements.js:1
(anonymous) @ elements.js:1
e.setupConnection @ app.js:3322
t @ lodash.js:4949
value @ elements.js:1
value @ elements.js:1
value @ elements.js:1
invoke @ elements.js:1
t.args.<computed> @ elements.js:1
setTimeout (async)
l @ elements.js:1
value @ elements.js:1
value @ elements.js:1
value @ elements.js:1
w @ elements.js:1
(anonymous) @ elements.js:1
T.r.<computed> @ elements.js:1
e.onClose @ app.js:3574
t @ lodash.js:4949
value @ elements.js:1
value @ elements.js:1
value @ elements.js:1
o @ elements.js:1
v @ elements.js:1
TheBlapse commented 2 years ago

Still getting the same error, here's my proxy config file for apache2

ProxyPass "/" "http://localhost:9000/" connectiontimeout=5 timeout=30 keepalive=on
ProxyPassReverse "/" "http://localhost:9000/"

RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:9000//$1" [P,L]

ProxyPass "/events" "ws://localhost:9000/events" connectiontimeout=5 timeout=30 keepalive=on
ProxyPassReverse "/events" "ws://localhost:9000/events"

ProxyPass "/api/v1/" "http://localhost:9000/api/v1/" connectiontimeout=5 timeout=30 keepalive=on
ProxyPassReverse "/api/v1" "http://localhost:9000/api/v1/"