Sign inSign up

znlsl/x-ui

By znlsl

•Updated almost 3 years ago

Image
0

1.2K

znlsl/x-ui repository overview

x-ui from https://github.com/alireza0/x-ui⁠

================================================

VMESS_WSPATH=${VMESS_WSPATH:-/VMESS_WSPATH}

NEZHA_SERVER

NEZHA_PORT

NEZHA_KEY

TLS is default NULL, you can set it to --tls

================================================

/etc/nginx/nginx.conf:

server {
    listen               80 default_server;
    listen               [::]:80 default_server;

    location / {
        proxy_redirect off;
        proxy_pass http://localhost:54321;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location VMESS_WSPATH {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:9600;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
    }

    location /54321 {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:54321;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
    }
}

}

================================================

etc/supervisor/supervisord.conf:

[supervisord]

nodaemon=true

logfile=/dev/null

pidfile=/run/supervisord.pid

[program:nginx]

command=nginx -g "daemon off;"

autostart=true

autorestart=true

stderr_logfile=/dev/null

stdout_logfile=/dev/null

[program:x-ui]

command=./x-ui

autostart=true

autorestart=true

stderr_logfile=/dev/null

stdout_logfile=/dev/null

[program:nezha-agent]

command=/opt/nezha/agent/nezha-agent -s $NEZHA_SERVER:$NEZHA_PORT -p $NEZHA_KEY $TLS

autostart=true

autorestart=true

stderr_logfile=/dev/null

stdout_logfile=/dev/null

================================================

Tag summary

Content type

Image

Digest

sha256:f9b2b515d…

Size

81.4 MB

Last updated

almost 3 years ago

docker pull znlsl/x-ui