From eac8443003c7a63d2e4ad5c6a76be3f2a31feec3 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 4 Jun 2018 22:39:12 -0400 Subject: [PATCH] Add cryptpad.sickstack.com vhost --- ubuntu/mercy.sickstack.com.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ubuntu/mercy.sickstack.com.yml b/ubuntu/mercy.sickstack.com.yml index 93c1756..8c4c28d 100644 --- a/ubuntu/mercy.sickstack.com.yml +++ b/ubuntu/mercy.sickstack.com.yml @@ -28,6 +28,26 @@ - location / { proxy_pass http://localhost:3000; } + cryptpad.sickstack.com.http: + - listen *:80 + - listen [::]:80 + - server_name cryptpad.sickstack.com + - location /.well-known/acme-challenge/ { + allow all; + } + - return 301 "https://$host$request_uri" + cryptpad.sickstack.com.https: + - listen *:443 ssl http2 + - listen [::]:443 ssl http2 + - server_name cryptpad.sickstack.com + - access_log "/var/log/nginx/cryptpad.sickstack.com.access.log" + - error_log "/var/log/nginx/cryptpad.sickstack.com.error.log" + - ssl_certificate "/etc/ssl/letsencrypt/cryptpad.sickstack.com.crt" + - ssl_certificate_key "/etc/ssl/letsencrypt/cryptpad.sickstack.com.pem" + - add_header Strict-Transport-Security max-age=31536000 + - location / { + proxy_pass http://localhost:3001; + } nginx_configs: gzip: