reorder server blocks

This commit is contained in:
Daniel Micay 2021-06-18 05:21:42 -04:00
parent 7743e8ebf6
commit 7abbe44836

View File

@ -84,19 +84,6 @@ http {
server { server {
listen 443 ssl http2 backlog=4096; listen 443 ssl http2 backlog=4096;
listen [::]:443 ssl http2 backlog=4096; listen [::]:443 ssl http2 backlog=4096;
server_name element.grapheneos.org;
root /usr/share/webapps/element;
include snippets/security-headers.conf;
add_header Content-Security-Policy "frame-ancestors 'self'; block-all-mixed-content";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Robots-Tag "none";
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name matrix.grapheneos.org; server_name matrix.grapheneos.org;
root /var/empty; root /var/empty;
@ -132,6 +119,19 @@ http {
} }
} }
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name element.grapheneos.org;
root /usr/share/webapps/element;
include snippets/security-headers.conf;
add_header Content-Security-Policy "frame-ancestors 'self'; block-all-mixed-content";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Robots-Tag "none";
}
server { server {
listen 127.0.0.1:81; listen 127.0.0.1:81;
listen [::1]:81; listen [::1]:81;