Changed formatting. Fixed a typo in proxy_pass path.
This commit is contained in:
parent
8c895db131
commit
630c703c12
@ -4,12 +4,12 @@ server {
|
|||||||
listen 127.0.0.1:8111; # I2P
|
listen 127.0.0.1:8111; # I2P
|
||||||
|
|
||||||
server_name radio.arav.top radio.arav.i2p mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion;
|
server_name radio.arav.top radio.arav.i2p mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion;
|
||||||
|
|
||||||
access_log /var/log/nginx/dwelling/radio.log main if=$nolog;
|
access_log /var/log/nginx/dwelling/radio.log main if=$nolog;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/arav.top/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/arav.top/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/arav.top/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/arav.top/privkey.pem;
|
||||||
|
|
||||||
|
|
||||||
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; font-src 'self'; form-action 'none'";
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; font-src 'self'; form-action 'none'";
|
||||||
add_header X-Frame-Options "DENY";
|
add_header X-Frame-Options "DENY";
|
||||||
add_header X-Content-Type-Options "nosniff";
|
add_header X-Content-Type-Options "nosniff";
|
||||||
@ -19,7 +19,8 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://unix:/var/log/dwelling-radio/r.sock/;
|
proxy_pass http://unix:/var/run/dwelling-radio/r.sock/;
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
||||||
proxy_set_header X-Client-Timezone $gi2_location_tz;
|
proxy_set_header X-Client-Timezone $gi2_location_tz;
|
||||||
@ -29,13 +30,15 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
location =/filelist {
|
location =/filelist {
|
||||||
default_type text/html;
|
|
||||||
alias $dwelling_root/radio_filelist.html;
|
alias $dwelling_root/radio_filelist.html;
|
||||||
|
|
||||||
|
default_type text/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location /live/ {
|
location /live/ {
|
||||||
proxy_pass http://127.0.0.1:8000/;
|
proxy_pass http://127.0.0.1:8000/;
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@ -50,8 +53,8 @@ server {
|
|||||||
listen 8000;
|
listen 8000;
|
||||||
|
|
||||||
server_name radio.arav.top;
|
server_name radio.arav.top;
|
||||||
access_log /var/log/nginx/dwelling/radio.http.log main if=$nolog;
|
|
||||||
|
|
||||||
|
access_log /var/log/nginx/dwelling/radio.http.log main if=$nolog;
|
||||||
|
|
||||||
add_header Content-Security-Policy "default-src 'none'; script-src 'none'; style-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; font-src 'self'; form-action 'none'";
|
add_header Content-Security-Policy "default-src 'none'; script-src 'none'; style-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; font-src 'self'; form-action 'none'";
|
||||||
add_header X-Frame-Options "DENY";
|
add_header X-Frame-Options "DENY";
|
||||||
@ -65,7 +68,6 @@ server {
|
|||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location /admin/ {
|
location /admin/ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user