astroport/www/loveland.conf

47 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-05-10 21:13:36 +02:00
server {
2020-05-17 11:56:39 +02:00
listen _PORT_;
listen [::]:_PORT_;
2020-05-10 21:13:36 +02:00
2020-05-17 11:56:39 +02:00
root /var/www/loveland/_APPLI_;
2020-05-10 21:13:36 +02:00
2020-05-23 00:31:17 +02:00
server_name _MY_NODE_NAME_ localhost 127.0.0.1;
error_log /var/log/nginx/_APPLI_.error.log;
access_log /var/log/nginx/_APPLI_.access.log;
2020-05-10 21:13:36 +02:00
2020-05-11 22:31:16 +02:00
# This section can be copied into an existing default setup
2020-05-12 00:19:21 +02:00
location / {
2020-05-11 22:31:16 +02:00
allow all;
index index.php index.html index.htm;
2020-05-10 21:13:36 +02:00
location ~ \.php {
try_files $uri index.php =404;
fastcgi_pass unix:/var/run/php/php_PHPVERSION_-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
fastcgi_read_timeout 1800;
}
2020-05-12 00:19:21 +02:00
error_page 404 = /error/404.html;
2020-05-10 21:13:36 +02:00
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;
}
location /ipns {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}