From 352c546f2a740e734407c9e37228d419c73acb48 Mon Sep 17 00:00:00 2001 From: Marwolf Date: Sat, 4 Aug 2018 11:30:26 -0400 Subject: [PATCH] Corrections for HTTPS, SMTP settings added --- docker-compose.yml | 7 ++++++ etc/nginx/HTTPS_default.template.conf | 34 --------------------------- 2 files changed, 7 insertions(+), 34 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 167b7a0..879361c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -106,6 +106,13 @@ services: NODE_ENV: production privacy__useUpdateCheck: 0 url: 'http://localhost' #change this! + #mail__from: OpenRSC Emailer + #mail__transport: SMTP + #mail__transport__options__host: smtp.gmail.com + #mail__transport__options__secureConnection: 1 + #mail__transport__options__port: 465 + #mail__transport__options__auth_user: openrsc.emailer@gmail.com + #mail__transport__options__auth_pass: OFF # logging: # driver: splunk # options: diff --git a/etc/nginx/HTTPS_default.template.conf b/etc/nginx/HTTPS_default.template.conf index f783257..06091de 100755 --- a/etc/nginx/HTTPS_default.template.conf +++ b/etc/nginx/HTTPS_default.template.conf @@ -33,40 +33,6 @@ server { rewrite ^ https://$host$request_uri? permanent; } - ####### Proxies ####### - # Ghost proxy - location ~ { - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Server $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://ghost:2368; - } - - # Tomcat proxy - location ~ \.(do|jspa|obr|jsp|txt|zip) { - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Server $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://tomcat:8080; - } - - ####### Protections and efficiencies ####### - # Deny access to files beginning with .ht, such as .htaccess and .htpasswd - location ~ /\.ht { - deny all; - } - - # Instructs visitor browser to cache files for 1 month - location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { - expires 1M; - } - - # Deny access to version control system directories. - location ~ /\.git { - deny all; - internal; - } - # Certbot for HTTPS cert renewal location ^~ /.well-known { allow all;