mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-12-23 22:49:31 -05:00
reorder server blocks
This commit is contained in:
parent
7743e8ebf6
commit
7abbe44836
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user