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.
|
bring up servers for certbot challenges.
|
||||||
Now launch certbot:
|
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
|
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.
|
If dry run is successful then generate certificates removing --dry-run.
|
||||||
|
|||||||
@@ -14,13 +14,13 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
|
http2 on;
|
||||||
server_name drive.vostan.org;
|
server_name drive.vostan.org;
|
||||||
|
|
||||||
# SSL configuration
|
# SSL configuration
|
||||||
#
|
#
|
||||||
ssl on;
|
|
||||||
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
|
http2 on;
|
||||||
server_name private.vostan.org;
|
server_name private.vostan.org;
|
||||||
|
|
||||||
# SSL configuration
|
# SSL configuration
|
||||||
#
|
#
|
||||||
ssl on;
|
|
||||||
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
|
http2 on;
|
||||||
server_name www.vostan.org;
|
server_name www.vostan.org;
|
||||||
|
|
||||||
# SSL configuration
|
# SSL configuration
|
||||||
#
|
#
|
||||||
ssl on;
|
|
||||||
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
ssl_certificate /etc/nginx/ssl/live/www.vostan.org/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
ssl_certificate_key /etc/nginx/ssl/live/www.vostan.org/privkey.pem;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user