mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2025-07-30 06:31:47 +00:00
Add custom nginx.conf
This commit is contained in:
60
web/custom_nginx.conf
Normal file
60
web/custom_nginx.conf
Normal file
@ -0,0 +1,60 @@
|
||||
daemon off;
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
large_client_header_buffers 4 64K;
|
||||
|
||||
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;
|
||||
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
server_name robosats_web_client;
|
||||
|
||||
# Add your custom verify files by editing location and alias
|
||||
location /clearnetonion_verify {
|
||||
alias /serve_misc/;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
@ -8,6 +8,7 @@ services:
|
||||
network_mode: service:tor
|
||||
volumes:
|
||||
- ./serve_misc:/serve_misc/
|
||||
- ./custom_nginx.conf:/etc/nginx/nginx.conf
|
||||
tor:
|
||||
build: ../compose/tor
|
||||
container_name: tor
|
||||
|
Reference in New Issue
Block a user