docker-taiga icon indicating copy to clipboard operation
docker-taiga copied to clipboard

Provide HTTPS config for nginx

Open douglasmiranda opened this issue 9 years ago • 4 comments

https://github.com/douglasmiranda/docker-taiga/blob/master/frontend/nginx/default.conf

https://taigaio.github.io/taiga-doc/dist/setup-production.html

douglasmiranda avatar Feb 16 '17 05:02 douglasmiranda

In case you're interested, if you swap ngnix for caddy you get automated configuration-free TLS with LetsEncrypt. That's my plan for our deployment. Btw, great work on this setup, me like it very much wow

andreabedini avatar Apr 20 '17 03:04 andreabedini

Great idea :D

It's a good opportunity to use caddy xD

douglasmiranda avatar Apr 20 '17 07:04 douglasmiranda

@douglasmiranda I did try but I couldn't find a nice way to replicate multiple locations in nginx. In other words, this

andreabedini avatar Apr 20 '17 12:04 andreabedini

found the solution (pretty neat!)

localhost {
    root /taiga-front-dist-3.1.0-stable/dist

    rewrite {
        to {path} {path}/ /index.html
    }
}

localhost/media {
    root /taiga/media
}

localhost/static {
    root /taiga/static
}

adjust with your paths

andreabedini avatar Apr 27 '17 03:04 andreabedini