Skip to content

3xui + docker + nginx proxy manager #3651

@zero-proger

Description

@zero-proger

Question

I have such a problem.
I use 3xui in a docker container

services:
  xray:
    image: 'bigbugcc/3x-ui:latest'
    container_name: xray
    restart: unless-stopped
    networks:
      - npm_npm
    volumes:
      - './db:/etc/x-ui'
      - './cert:/root/cert'
      - ./logs:/var/log
    deploy:
      resources:
        limits:
          cpus: '1.0'
          memory: 1G
        reservations:
          cpus: '0.25'
          memory: 256M

networks:
  npm_npm:
    external: true

There is NPM (Nginx Proxy Manager) and its configuration in docker

services:
  npm:
    container_name: npm
    image: 'docker.io/jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '81:81'
      - '80:80'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
    networks:
      - npm

networks:
  npm:
    driver: 'bridge'
    ipam:
      config:
        - subnet: 10.10.1.0/24
          gateway: 10.10.1.1
          ip_range: 10.10.1.0/24

They are on the same network and there is a rule in NPM to use the panel in the proxy-host.

Domain: xray.example.com
Scheme: http
Host: xray
Port: 2053
Certificate: Received by letsencrypt

Domain: vless.example.com
Scheme: http
Host: xray
Port: 8443
Certificate: Received by letsencrypt


When I want to create an inbound in the 3xui panel:

Protocol: vless
Port: 8443
Authentication: none
Transmission: TCP (RAW)
External proxy: vless.example.com (configured in NPM to forward port 443 to xray:8443)
Security: Reality
uTLS: Random
Target: vk.com:443
SNI: vk.com
Public Key (Private Key) Get New cert
Sniffing: HTTP TLS QUIC


For some reason, nothing works for me, I also tried different tranfers and different protocols.
I need to be sure to use port 443 to connect to vless.

Checklist

  • This question is written entirely in English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot an issue, but a question

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions