Update site configurations to compily with the new nginx.
This commit is contained in:
@@ -11,6 +11,7 @@ This is because SSL servers will not start without certificates. We need to
|
||||
bring up servers for certbot challenges.
|
||||
Now launch certbot:
|
||||
```
|
||||
docker-compose up -d
|
||||
docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ --dry-run -d www.vostan.org -d drive.vostan.org
|
||||
```
|
||||
If dry run is successful then generate certificates removing --dry-run.
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
##
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
server_name drive.vostan.org;
|
||||
|
||||
# SSL configuration
|
||||
#
|
||||
ssl on;
|
||||
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
##
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
server_name private.vostan.org;
|
||||
|
||||
# SSL configuration
|
||||
#
|
||||
ssl on;
|
||||
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
##
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
server_name www.vostan.org;
|
||||
|
||||
# SSL configuration
|
||||
#
|
||||
ssl on;
|
||||
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user