Whitespace corrections
This commit is contained in:
parent
ede71f7d82
commit
cfd750894a
@ -1,25 +1,25 @@
|
|||||||
server {
|
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;
|
access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
# SSL configuration
|
# SSL configuration
|
||||||
include /etc/nginx/ssl.conf;
|
include /etc/nginx/ssl.conf;
|
||||||
|
|
||||||
# Add index.php to the list if you are using PHP
|
# Add index.php to the list if you are using PHP
|
||||||
index index.html index.htm index.nginx-debian.html;
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
|
||||||
# Default catch all to 404
|
# Default catch all to 404
|
||||||
# Added from Serverfault support https://serverfault.com/questions/994141/nginx-redirecting-the-wrong-subdomains
|
# Added from Serverfault support https://serverfault.com/questions/994141/nginx-redirecting-the-wrong-subdomains
|
||||||
server_name _;
|
server_name _;
|
||||||
server_name_in_redirect off;
|
server_name_in_redirect off;
|
||||||
location / {
|
location / {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
#error_page 404 /404.html;
|
#error_page 404 /404.html;
|
||||||
|
|
||||||
|
@ -3,21 +3,21 @@ upstream reftest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name domain_name;
|
server_name domain_name;
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
# Redirect to ssl
|
# Redirect to ssl
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name domain_name;
|
server_name domain_name;
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
#SSL configuration
|
#SSL configuration
|
||||||
include /etc/nginx/ssl.conf;
|
include /etc/nginx/ssl.conf;
|
||||||
include /etc/nginx/certbot-challenge.conf;
|
include /etc/nginx/certbot-challenge.conf;
|
||||||
|
|
||||||
location ^~ /static/ {
|
location ^~ /static/ {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
|
@ -11,11 +11,11 @@ from flask_mail import Mail
|
|||||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
|
|
||||||
from common.security import check_keyfile_exists, generate_keyfile
|
from common.security import check_keyfile_exists, generate_keyfile
|
||||||
import config
|
from config import ProductionConfig as Config
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object(config.ProductionConfig())
|
app.config.from_object(Config())
|
||||||
|
|
||||||
from common.blueprints import cookie_consent
|
from common.blueprints import cookie_consent
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user