Hi @wertex15
Thank you for your very first post, and welcome to Taiga!
I have verified there’s no error with the events communication, by simulating your IP with a custom local domain and using your exact .env
settings.
I left you here my testing environment:
/etc/hosts
:
127.0.0.1 my.domain
.env
:
TAIGA_SCHEME=http # serve Taiga using "http" or "https" (secured) connection
TAIGA_DOMAIN=my.domain:80 # Taiga's base URL
SUBPATH="" # it'll be appended to the TAIGA_DOMAIN (use either "" or a "/subpath")
WEBSOCKETS_SCHEME=ws # events connection protocol (use either "ws" or "wss")
And finally, I think the tricky part, that is my default.conf in the NGinx acting as a proxy pass to my Taiga’s docker installation:
/etc/nginx/conf.d/default.conf
:
server {
server_name my.domain;
listen 80;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://localhost:9000/;
}
# Events <============ Review here
location /events {
proxy_pass http://localhost:9000/events;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}
# TLS: Configure your TLS following the best practices inside your company
# Logs and other configurations
}
If you’re facing a problem in the events, your problem could be located in the /events
location, which it’s the responsible to capture all the ws://my.domain/events
and redirect to the real location where it can be answered by your Taiga’s docker app: http://localhost:9000/events
.
As you’re not using a subpath in your URL (TAIGA_DOMAIN
.env variable), your proxy setting should use the subdomain sample mentioned in the installation guide: 1.9. Configure the proxy configuration. It’s also mentioned in the Taiga 30 mins Setup.
If that’s doesn’t solve your problem, please post us your proxy configuration in order to offer you further help.
Greetings