2020-03-22 01:31:06 +01:00
|
|
|
server {
|
|
|
|
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
|
|
|
|
root /var/www/rompr;
|
|
|
|
index index.php index.html index.htm;
|
|
|
|
|
|
|
|
server_name copylaradio;
|
|
|
|
|
|
|
|
# This section can be copied into an existing default setup
|
|
|
|
location / {
|
|
|
|
allow all;
|
|
|
|
index index.php;
|
|
|
|
location ~ \.php {
|
|
|
|
try_files $uri index.php =404;
|
|
|
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_read_timeout 1800;
|
|
|
|
}
|
|
|
|
error_page 404 = /404.php;
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
location ~ /albumart/* {
|
|
|
|
expires -1s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# IPFS GATEWAY PROXY
|
|
|
|
location /ipfs {
|
|
|
|
proxy_pass http://127.0.0.1:8080;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
|
|
|
|
2020-03-25 18:21:56 +01:00
|
|
|
location /ipns {
|
|
|
|
proxy_pass http://127.0.0.1:8080;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
|
|
|
|
2020-03-22 01:31:06 +01:00
|
|
|
}
|
|
|
|
|