Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

تغییر پورت اتصال نود #29

Open
mnsb13600 opened this issue Jan 10, 2024 · 6 comments
Open

تغییر پورت اتصال نود #29

mnsb13600 opened this issue Jan 10, 2024 · 6 comments

Comments

@mnsb13600
Copy link

با سلام به دوستان
چطوری می شود پورت اتصال نود به سرور اصلی را تغییر داد
می خواهم روی nat استفاده کنم

@parhawm
Copy link

parhawm commented Jan 10, 2024

اگه رو داکره با کانفیگ داکر و یا فایل .env.
اگر نه از .env میشه تغییر داد.

@iambabyninja
Copy link

iambabyninja commented Jan 10, 2024

Edit your docker-compose file like this, and setup variables in environment section

services:
  marzban-node:
    # build: .
    image: gozargah/marzban-node:latest
    restart: always
    network_mode: host

    environment:
      SERVICE_PORT: 2000
      XRAY_API_PORT: 2001
      SSL_CLIENT_CERT_FILE: "/var/lib/marzban-node/ssl_client_cert.pem"

    volumes:
      - /var/lib/marzban-node:/var/lib/marzban-node

Reference: https://gozargah.github.io/marzban/docs/marzban-node

@mnsb13600
Copy link
Author

mnsb13600 commented Jan 10, 2024

Edit your docker-compose file like this, and setup variables in environment section

services:
  marzban-node:
    # build: .
    image: gozargah/marzban-node:latest
    restart: always
    network_mode: host

    environment:
      SERVICE_PORT: 2000
      XRAY_API_PORT: 2001
      SSL_CLIENT_CERT_FILE: "/var/lib/marzban-node/ssl_client_cert.pem"

    volumes:
      - /var/lib/marzban-node:/var/lib/marzban-node

Reference: https://gozargah.github.io/marzban/docs/marzban-node

ممنون متصل شد

@mnsb13600
Copy link
Author

mnsb13600 commented Jan 10, 2024

اگه رو داکره با کانفیگ داکر و یا فایل .env. اگر نه از .env میشه تغییر داد.

مسیر فایل را می توانید بگویید روی داکر است

@parhawm
Copy link

parhawm commented Jan 10, 2024

@mnsb13600 همون راه حلی که رفیقمون بالا گفته رو انجام بده برای داکر

@mnsb13600
Copy link
Author

mnsb13600 commented Jan 10, 2024

@mnsb13600 همون راه حلی که رفیقمون بالا گفته رو انجام بده برای داکر

ممنون متصل شد

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants