Hi, I have deployed Taiga locally using Docker Compose, and it is working fine. Now, I want to configure NGINX as a reverse proxy to access Taiga over the local LAN. Can someone help me with this?
Hi,
Yes we can
Do you want to use nginx on your host ?
Hi,
Yes, I want to configure nginx as a reverse proxy.
Regards,
siva
conf file nginx, the port is 8000 here, to be modified
The .env taiga must be configured with TAIGA_SCHEME=https
You need to have a certificate with letsencrypt for example
/etc/nginx/sites-available
Default server configuration
server {
listen 80;
server_name taiga.mydomain.com;
# Redirection HTTP vers HTTPS
location / {
return 301 https://taiga.mydomain.com;
}
}
server {
listen 443 ssl;
server_name taiga.mydomain.com;
ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8000/;
proxy_read_timeout 90;
}
}
I forgot, in docker-compose.yml
I modify the taiga-gateway like that
- “${BIND_IP:-127.0.0.1}:${HOST_PORT:-8000}:${CONTAINER_PORT:-80}”
- instead of - “8000:80”
Okay, I will work on that.
Thanks.
Does it work only on https or we can configure http.
I don’t know if it can work in http, probably yes, if you comment the https section, but I don’t try it
Does the taiga works for port forwarding in the internal private network.