clash-linux commited on
Commit
f3e2a2a
·
verified ·
1 Parent(s): c058c1e

Upload 18 files

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. redsocks.conf +5 -5
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Use an official Node.js runtime as a parent image
2
  FROM node:18-slim
3
 
 
 
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
 
1
  # Use an official Node.js runtime as a parent image
2
  FROM node:18-slim
3
 
4
+ # Switch to root user to install packages and configure system
5
+ USER root
6
+
7
  # Set the working directory in the container
8
  WORKDIR /app
9
 
redsocks.conf CHANGED
@@ -4,17 +4,17 @@ base {
4
  log = "stderr";
5
  daemon = off;
6
  redirector = iptables;
7
- }
8
 
9
  redsocks {
10
- // redsocks 监听的本地地址和端口
11
  local_ip = 127.0.0.1;
12
  local_port = 12345;
13
 
14
- // 您的上游HTTP代理服务器的IP和端口
15
  ip = 34.55.224.190;
16
  port = 8080;
17
 
18
- // 代理类型:http-connect 用于代理HTTPS流量
19
  type = http-connect;
20
- }
 
4
  log = "stderr";
5
  daemon = off;
6
  redirector = iptables;
7
+ };
8
 
9
  redsocks {
10
+ /* redsocks 监听的本地地址和端口 */
11
  local_ip = 127.0.0.1;
12
  local_port = 12345;
13
 
14
+ /* 您的上游HTTP代理服务器的IP和端口 */
15
  ip = 34.55.224.190;
16
  port = 8080;
17
 
18
+ /* 代理类型:http-connect 用于代理HTTPS流量 */
19
  type = http-connect;
20
+ };