mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-09-27 23:05:37 +00:00
set baseline nginx root directory in http block
This commit is contained in:
parent
7725a8617d
commit
d3c60a104b
@ -12,6 +12,8 @@ events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
root /var/empty;
|
||||||
|
|
||||||
include mime.types;
|
include mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
@ -102,8 +104,6 @@ http {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name matrix.grapheneos.org element.grapheneos.org;
|
server_name matrix.grapheneos.org element.grapheneos.org;
|
||||||
|
|
||||||
root /var/empty;
|
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
root /srv/certbot;
|
root /srv/certbot;
|
||||||
}
|
}
|
||||||
@ -124,8 +124,6 @@ http {
|
|||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name matrix.grapheneos.org;
|
server_name matrix.grapheneos.org;
|
||||||
|
|
||||||
root /var/empty;
|
|
||||||
|
|
||||||
include snippets/security-headers.conf;
|
include snippets/security-headers.conf;
|
||||||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||||
add_header Content-Security-Policy "font-src 'none'; manifest-src 'none'; object-src 'none'; script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content" always;
|
add_header Content-Security-Policy "font-src 'none'; manifest-src 'none'; object-src 'none'; script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content" always;
|
||||||
@ -187,8 +185,6 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen unix:/run/nginx/status.sock;
|
listen unix:/run/nginx/status.sock;
|
||||||
|
|
||||||
root /var/empty;
|
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|
||||||
location = / {
|
location = / {
|
||||||
|
Loading…
Reference in New Issue
Block a user