mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-21 02:03:14 +00:00
Add logs to nodeapp
This commit is contained in:
@ -1,8 +1,14 @@
|
|||||||
FROM alpine:3.18.0
|
FROM alpine:3.18.0
|
||||||
|
|
||||||
|
LABEL maintainer="Reckless_Satoshi https://github.com/reckless-satoshi"
|
||||||
|
|
||||||
RUN mkdir -p /usr/src/robosats
|
RUN mkdir -p /usr/src/robosats
|
||||||
WORKDIR /usr/src/robosats
|
WORKDIR /usr/src/robosats
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& addgroup -g 101 -S nginx \
|
||||||
|
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
@ -1,11 +1,30 @@
|
|||||||
|
daemon off;
|
||||||
|
|
||||||
|
user nginx;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/error.log notice;
|
||||||
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
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.
|
# Every robosat coordinators socat tor bridge is an upstream.
|
||||||
# So far only the experimental coordinator is available.
|
# So far only the experimental coordinator is available.
|
||||||
upstream experimental_coordinator {
|
upstream experimental_coordinator {
|
||||||
@ -17,8 +36,6 @@ http {
|
|||||||
listen 12596;
|
listen 12596;
|
||||||
server_name robosats_client;
|
server_name robosats_client;
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/src/robosats;
|
root /usr/src/robosats;
|
||||||
try_files $uri $uri/ /basic.html;
|
try_files $uri $uri/ /basic.html;
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
experimental_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
experimental_onion=robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
||||||
experimental_socat="socat tcp4-LISTEN:81,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${experimental_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
experimental_socat="socat tcp4-LISTEN:81,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${experimental_onion}:80,socksport=${TOR_PROXY_PORT:-9050}"
|
||||||
|
|
||||||
$experimental_socat & nginx -g "daemon off;"
|
$experimental_socat & nginx
|
Reference in New Issue
Block a user