[DOCKER] Fixed docker environment to properly configure the app environment
This commit is contained in:
5
docker/nginx/domain.sh
Executable file
5
docker/nginx/domain.sh
Executable 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
|
@@ -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;
|
||||
|
||||
|
@@ -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;
|
Reference in New Issue
Block a user