Splice in the FOSSY static site
This commit is contained in:
parent
64b4d93470
commit
dd23015270
1 changed files with 7 additions and 2 deletions
|
@ -13,6 +13,7 @@ server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name {{ env.domain }};
|
server_name {{ env.domain }};
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
|
root /var/www/fossy;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/{{ env.domain }}/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/{{ env.domain }}/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/{{ env.domain }}/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/{{ env.domain }}/privkey.pem;
|
||||||
|
@ -26,9 +27,9 @@ server {
|
||||||
# Advise browser to only load external content from these sites.
|
# Advise browser to only load external content from these sites.
|
||||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://code.jquery.com/jquery-3.5.1.min.js https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js https://js.stripe.com/v3/ https://r.stripe.com/0";
|
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://code.jquery.com/jquery-3.5.1.min.js https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js https://js.stripe.com/v3/ https://r.stripe.com/0";
|
||||||
|
|
||||||
location / {
|
location @app {
|
||||||
# Django web application including static files (via WhiteNoise).
|
# Django web application including static files (via WhiteNoise).
|
||||||
uwsgi_pass {{ site_name }}_django_wsgi;
|
uwsgi_pass symposion_django_wsgi;
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
|
|
||||||
# Disable gzip compression when where traffic might be over SSL
|
# Disable gzip compression when where traffic might be over SSL
|
||||||
|
@ -38,6 +39,10 @@ server {
|
||||||
gzip off;
|
gzip off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/index.html $uri.html @app;
|
||||||
|
}
|
||||||
|
|
||||||
location /media/ {
|
location /media/ {
|
||||||
# User-uploaded files and generated reports.
|
# User-uploaded files and generated reports.
|
||||||
alias {{ project_dir }}/media/;
|
alias {{ project_dir }}/media/;
|
||||||
|
|
Loading…
Reference in a new issue