# Taiga docker and SSL Certificate

**URL:** <https://community.taiga.io/t/taiga-docker-and-ssl-certificate/4390>\
**Category:** Troubleshooting\
**Tags:** docker\
**Created:** [November 4, 2024, 9:17pm UTC](https://community.taiga.io/t/taiga-docker-and-ssl-certificate/4390 "2024-11-04T21:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT-META](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/it-meta/32/3225_2.png) [@IT-META](https://community.taiga.io/u/IT-META)\
**Post date:** [November 4, 2024, 9:17pm UTC](https://community.taiga.io/t/taiga-docker-and-ssl-certificate/4390/1 "2024-11-04T21:17:42Z")

</div>

Hello Community,

I need your help.

I have setup a fresh taiga installation with docker and it works with http on port 9000.

I have generated SSL Certificates from my internal PKI but I don’t understand how to configure my taiga instance to work with https.

My docker-compose.yml file:

> Blockquote  
> taiga-front:  
> image: taigaio/taiga-front:latest  
> environment:  
> TAIGA\_URL: “${TAIGA\_SCHEME}://${TAIGA\_DOMAIN}”  
> TAIGA\_WEBSOCKETS\_URL: “${WEBSOCKETS\_SCHEME}://${TAIGA\_DOMAIN}”  
> TAIGA\_SUBPATH: “${SUBPATH}”  
> # …your customizations go here  
> networks:  
> - taiga  
> # volumes:  
> # - ./conf.json:/usr/share/nginx/html/conf.json  
> taiga-gateway:  
> image: nginx:1.19-alpine  
> ports:  
> - “9000:80”  
> volumes:  
> - ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf  
> - taiga-static-data:/taiga/static  
> - taiga-media-data:/taiga/media  
> networks:  
> - taiga  
> depends\_on:  
> - taiga-front  
> - taiga-back  
> - taiga-events  
> Blockquote

My .env file:

> Blockquote  
> TAIGA\_SCHEME=http # serve Taiga using “http” or “https” (secured) connection  
> TAIGA\_DOMAIN=[taiga.internal.test.com:9000](http://taiga.internal.test.com:9000) # 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”)  
> Blockquote

My nginx.conf file:

> Blockquote  
> server {  
> # listen 80 default\_server;  
> server\_name [taiga.internal.test.com](http://taiga.internal.test.com);  
> client\_max\_body\_size 100M;  
> charset utf-8;  
> Blockquote

When I configure https, the web site is not responding (even in http). I have spend some hours on Google, test some configuration but nothing is working ☹ !

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Charlie](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@Charlie](https://community.taiga.io/u/Charlie)\
**Post date:** [November 5, 2024, 8:37am UTC](https://community.taiga.io/t/taiga-docker-and-ssl-certificate/4390/2 "2024-11-05T08:37:48Z")

</div>

Hi there!

Have you checked [this article](https://community.taiga.io/t/self-host-ssl-issues/2618)?

Best regards!

---

<div class="post-metadata">

**Author:** ![IT-META](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/it-meta/32/3225_2.png) [@IT-META](https://community.taiga.io/u/IT-META)\
**Post date:** [November 5, 2024, 2:11pm UTC](https://community.taiga.io/t/taiga-docker-and-ssl-certificate/4390/3 "2024-11-05T14:11:16Z")

</div>

Hi,

It works !

My .env file:

```auto
# Taiga's URLs - Variables to define where Taiga should be served
TAIGA_SCHEME=https # serve Taiga using "http" or "https" (secured) connection
TAIGA_DOMAIN=taiga.internal.test.com # Taiga's base URL
SUBPATH="" # it'll be appended to the TAIGA_DOMAIN (use either "" or a "/subpath")
WEBSOCKETS_SCHEME=wss # events connection protocol (use either "ws" or "wss")

```

My docker-compose.yml file:

```auto
  taiga-gateway:
    image: nginx:1.19-alpine
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./taiga-gateway/taiga.conf:/etc/nginx/conf.d/default.conf
      - ./taiga-gateway/certs/taiga.internal.test.com.crt:/etc/nginx/ssl/taiga.internal.test.com.crt
      - ./taiga-gateway/certs/taiga.internal.test.com.key:/etc/nginx/ssl/taiga.internal.test.com.key
      - taiga-static-data:/taiga/static
      - taiga-media-data:/taiga/media
    networks:
      - taiga
    depends_on:
      - taiga-front
      - taiga-back
      - taiga-events

```

My taiga.conf (nginx) file:

```auto
server {
    listen 80 default_server;
    server_name taiga.internal.test.com;
    # Redirect all HTTP requests to HTTPS
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name taiga.internal.test.com;
    ssl_certificate /etc/nginx/ssl/taiga.internal.test.com.crt;
    ssl_certificate_key /etc/nginx/ssl/taiga.internal.test.com.key;

```

Thanks for your help
