[DOCKER] Fixed docker environment to properly configure the app environment

This commit is contained in:
Hugo Sales
2020-05-06 12:04:59 +00:00
committed by Hugo Sales
parent cf1a9fe893
commit b1afa9cf91
8 changed files with 36 additions and 24 deletions

5
docker/nginx/domain.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
cat /var/nginx/social.conf | \
sed -r "s/%hostname%/$domain/g; s/%hostname_root%/$domain_root/g" > \
/etc/nginx/conf.d/social.conf

View File

@@ -11,7 +11,15 @@ server {
server {
include ssl-common.conf
listen [::]:443 ssl http2;
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/%hostname_root%/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/%hostname_root%/privkey.pem;
# Let's Encrypt best practices
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
root /var/www/social/public;

View File

@@ -1,10 +0,0 @@
listen [::]:443 ssl http2;
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/hsal.es/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hsal.es/privkey.pem;
# Let's Encrypt best practices
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;