robosats/nodeapp/nginx.conf

91 lines
2.4 KiB
Nginx Configuration File
Raw Normal View History

2023-05-12 12:18:48 +00:00
daemon off;
user nginx;
worker_processes auto;
2023-05-12 12:18:48 +00:00
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
2023-05-12 12:18:48 +00:00
include /etc/nginx/mime.types;
default_type application/octet-stream;
large_client_header_buffers 4 64K;
2023-05-12 12:18:48 +00:00
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout main;
error_log /dev/stderr warn;
sendfile on;
keepalive_timeout 65;
# Every robosat coordinators socat tor bridge is an upstream.
2023-11-03 10:53:46 +00:00
# Coordinators in the federation:
# Experimental
include /etc/nginx/conf.d/exp/upstreams.conf;
2023-11-03 11:42:25 +00:00
# Temple of Sats
2023-11-03 10:53:46 +00:00
include /etc/nginx/conf.d/temple/upstreams.conf;
2023-11-03 11:42:25 +00:00
# Satstralia
include /etc/nginx/conf.d/satstralia/upstreams.conf;
2024-03-02 09:38:04 +00:00
# TheBigLake
2023-12-30 11:18:09 +00:00
include /etc/nginx/conf.d/lake/upstreams.conf;
2024-03-02 09:38:04 +00:00
# BitcoinVeneto
include /etc/nginx/conf.d/veneto/upstreams.conf;
server {
listen 12596;
server_name robosats_client;
# add_header Access-Control-Allow-Headers "*";
# add_header Access-Control-Allow-Origin "*";
location / {
root /usr/src/robosats;
try_files $uri $uri/ /basic.html;
index basic.html;
}
location /pro {
root /usr/src/robosats;
try_files $uri $uri/ /pro.html;
index pro.html;
}
location /static/ {
alias /usr/src/robosats/static/;
autoindex on;
}
location = /favicon.ico {
alias /usr/src/robosats/static/assets/images/favicon-96x96.png;
}
# Proxy API, WS and Avatarts to the coordinator(s) socat bridges
2023-11-03 10:53:46 +00:00
# Experimental
include /etc/nginx/conf.d/exp/locations.conf;
2023-11-03 10:53:46 +00:00
# Temple of Sats
include /etc/nginx/conf.d/temple/locations.conf;
2023-11-03 11:42:25 +00:00
# Satstralia
include /etc/nginx/conf.d/satstralia/locations.conf;
2023-12-30 11:18:09 +00:00
# TheBigLake
include /etc/nginx/conf.d/lake/locations.conf;
2024-03-02 09:38:04 +00:00
# BitcoinVeneto
include /etc/nginx/conf.d/veneto/locations.conf;
# do not log healtchecks made against "/selfhosted"
location /selfhosted {
access_log off;
return 200 "OK";
}
}
}