astroport/www/loveland.conf

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-05-10 21:13:36 +02:00
server {
2020-05-11 20:37:55 +02:00
listen 80;
listen [::]:80;
2020-05-10 21:13:36 +02:00
root /var/www/loveland;
2020-05-11 18:50:23 +02:00
server_name _SERVERNAME_;
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;
}
}
2020-05-12 00:19:21 +02:00
# OASIS SSB TODO: NOT WORKING (cor problem)
2020-05-10 21:13:36 +02:00
location /oasis {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
# 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;
}
}