Generating a traefik/nginx password hash without htpasswd

For when you don’t want to install httpd-tools / apache2-utils tl; dr: openssl passwd -apr1 | sed -E “s:[\$]:\$\$:g” (traefik) openssl passwd -apr1 (nginx) Explanations below. Generating a Hash Traefik does basic auth as a middleware. For this you need a password hash. The docs suggest using htpasswd, (eg like htpasswd -nbB), which is grand […]

Continue Reading

Using Discourse Dev with Traefik (without ‘Bad Gateway’ + ‘blocked host’)

tl;dr: Traefik grabs the first port it sees, which on the dev image is 1080- we want port 9292. Use –label=traefik.http.routers.discourse-dev.port=9292 You need to set a dev host using en env var in the container: -e DISCOURSE_DEV_HOSTS=your_dev_hostname \ With the dev version of Discourse working, I wanted to let its connectivity be managed by the […]

Continue Reading

Adding Discourse to a mix of nginx-hosted sites [How]

I set up a Discourse server today. It was pleasantly straightforward. The official docs work well enough, though there are a few things I did: integrated with existing nginx sites by cribbing from this guide (short version: forward Discourse requests to a socket) set up email delivery via MailJet- their admin interface makes getting credentials […]

Continue Reading