From 16f928a602981d1a80de8193ec6ef1d9aa610c59 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 12 Jan 2024 13:07:43 +0000 Subject: [PATCH] Add custom nginx.conf --- web/custom_nginx.conf | 60 ++++++++++++++++++++++++++++++++++++++++++ web/docker-compose.yml | 1 + 2 files changed, 61 insertions(+) create mode 100644 web/custom_nginx.conf diff --git a/web/custom_nginx.conf b/web/custom_nginx.conf new file mode 100644 index 0000000..6aa227d --- /dev/null +++ b/web/custom_nginx.conf @@ -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; + } + } +} \ No newline at end of file diff --git a/web/docker-compose.yml b/web/docker-compose.yml index 5fa6a58..048c7e5 100644 --- a/web/docker-compose.yml +++ b/web/docker-compose.yml @@ -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