From cfd750894aed05a123a086ba0beb4c4c8e245d1b Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Sun, 17 Apr 2022 18:42:40 +0100 Subject: [PATCH] Whitespace corrections --- nginx/conf.d/default.conf | 30 +++++++++++++++--------------- nginx/conf.d/ref-test-app.conf | 18 +++++++++--------- ref-test/main.py | 4 ++-- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 8b52bcc..8c73d38 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -1,25 +1,25 @@ server { - listen 80 default_server; - listen [::]:80 default_server; + listen 80 default_server; + listen [::]:80 default_server; - listen 443 ssl http2 default_server; - listen [::]:443 ssl http2 default_server; + listen 443 ssl http2 default_server; + listen [::]:443 ssl http2 default_server; access_log /var/log/nginx/host.access.log main; - # SSL configuration - include /etc/nginx/ssl.conf; + # SSL configuration + include /etc/nginx/ssl.conf; - # Add index.php to the list if you are using PHP - index index.html index.htm index.nginx-debian.html; + # Add index.php to the list if you are using PHP + index index.html index.htm index.nginx-debian.html; - # Default catch all to 404 - # Added from Serverfault support https://serverfault.com/questions/994141/nginx-redirecting-the-wrong-subdomains - server_name _; - server_name_in_redirect off; - location / { - return 404; - } + # Default catch all to 404 + # Added from Serverfault support https://serverfault.com/questions/994141/nginx-redirecting-the-wrong-subdomains + server_name _; + server_name_in_redirect off; + location / { + return 404; + } #error_page 404 /404.html; diff --git a/nginx/conf.d/ref-test-app.conf b/nginx/conf.d/ref-test-app.conf index 225fe42..c2ced67 100644 --- a/nginx/conf.d/ref-test-app.conf +++ b/nginx/conf.d/ref-test-app.conf @@ -3,21 +3,21 @@ upstream reftest { } server { - server_name domain_name; - listen 80; - listen [::]:80; + server_name domain_name; + listen 80; + listen [::]:80; # Redirect to ssl - return 301 https://$host$request_uri; + return 301 https://$host$request_uri; } server { - server_name domain_name; - listen 443 ssl http2; - listen [::]:443 ssl http2; + server_name domain_name; + listen 443 ssl http2; + listen [::]:443 ssl http2; #SSL configuration - include /etc/nginx/ssl.conf; - include /etc/nginx/certbot-challenge.conf; + include /etc/nginx/ssl.conf; + include /etc/nginx/certbot-challenge.conf; location ^~ /static/ { include /etc/nginx/mime.types; diff --git a/ref-test/main.py b/ref-test/main.py index aeec7f4..6abf51f 100644 --- a/ref-test/main.py +++ b/ref-test/main.py @@ -11,11 +11,11 @@ from flask_mail import Mail from werkzeug.middleware.proxy_fix import ProxyFix from common.security import check_keyfile_exists, generate_keyfile -import config +from config import ProductionConfig as Config def create_app(): app = Flask(__name__) - app.config.from_object(config.ProductionConfig()) + app.config.from_object(Config()) from common.blueprints import cookie_consent