Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ services:
# collides with ours whenever DOMAIN=localhost. Null it out.
- /dev/null:/etc/nginx/conf.d/default.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/www/certbot:/var/www/certbot:ro
depends_on:
- app
networks:
Expand Down
10 changes: 9 additions & 1 deletion nginx/templates/20-speech-server.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ server {
server {
listen 80;
server_name ${DOMAIN};
return 301 https://$host$request_uri;

# Let's Encrypt HTTP-01 challenge (certbot --webroot /var/www/certbot).
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}

location / {
return 301 https://$host$request_uri;
}
}

server {
Expand Down
Loading