Skip to content

Panel with UVICORN_UDS #46

Closed
Closed

Description

@CryZFix

Сan I somehow get into the panel using UVICORN_UDS and Caddy for certificates, without port forwarding and manual certificate substitution?

Activity

  1. M03ED commented on Oct 17, 2025

    @M03ED
    Contributor

    yeah it's available

  2. CryZFix commented on Oct 17, 2025

    @CryZFix
    Author

    yeah it's available

    Is this a different job compared to marzban?
    https://connect.domain.com { reverse_proxy * unix//run/pasarguard.socket }
    does not work as in my marzban configuration
    the socket is transmitted via volume docker

  3. ImMohammad20000 commented on Oct 17, 2025

    @ImMohammad20000
    Contributor

    put this in .env file
    UVICORN_UDS = "/var/lib/pasarguard/pasarguard.socket"
    Than set the reverse proxy to that address

  4. CryZFix commented on Oct 17, 2025

    @CryZFix
    Author

    put this in .env file UVICORN_UDS = "/var/lib/pasarguard/pasarguard.socket" Than set the reverse proxy to that address

    yes i'm did it

    services:
      caddy:
        image: caddy:2.9
        container_name: caddy
        restart: always
        network_mode: host
        volumes:
          - ./caddy/data:/data
          - ./caddy/Caddyfile:/etc/caddy/Caddyfile
          - ./pasarguard_lib:/run/pasarguard
      pasarguard:
        image: pasarguard/panel:v1.0.1
        container_name: pasarguard
        restart: always
        network_mode: host
        env_file: .env_pasarguard
        volumes:
          - ./pasarguard_lib:/var/lib/pasarguard

    but it still doesn't work in my case.

  5. ImMohammad20000 commented on Oct 17, 2025

    @ImMohammad20000
    Contributor

    Do you restart pasarguard?

  6. CryZFix commented on Oct 17, 2025

    @CryZFix
    Author

    Do you restart pasarguard?

    Naturally)

  7. ImMohammad20000 commented on Oct 17, 2025

    @ImMohammad20000
    Contributor

    Can you send your .env content?

  8. CryZFix commented on Oct 17, 2025

    @CryZFix
    Author

    Can you send your .env content?

    UVICORN_UDS = "/var/lib/pasarguard/pasarguard.socket"
    DASHBOARD_PATH = "/33992c212d49fa6c/"
    XRAY_SUBSCRIPTION_TEMPLATE = "xray_config.json"
    SQLALCHEMY_DATABASE_URL = "sqlite+aiosqlite:////var/lib/pasarguard/db.sqlite3"
    
  9. ImMohammad20000 commented on Oct 17, 2025

    @ImMohammad20000
    Contributor

    when the panel is running you are geting this log?

    pasarguard-1  | INFO:     2025-10-17 05:02:22,622 - Uvicorn running on unix socket /var/lib/pasarguard/pasarguard.socket (Press CTRL+C to quit)
    
    
  10. CryZFix commented on Oct 17, 2025

    @CryZFix
    Author

    when the panel is running you are geting this log?

    pasarguard-1  | INFO:     2025-10-17 05:02:22,622 - Uvicorn running on unix socket /var/lib/pasarguard/pasarguard.socket (Press CTRL+C to quit)
    
    pasarguard  | INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
    pasarguard  | INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
    pasarguard  | INFO:     2025-10-17 16:49:14,591 - Started server process [9]
    pasarguard  | INFO:     2025-10-17 16:49:14,592 - Waiting for application startup.
    pasarguard  | INFO:     2025-10-17 16:49:14,659 - Node-checker - Starting nodes' cores...
    pasarguard  | WARNING:  2025-10-17 16:49:14,662 - Node-checker - Attention: You have no node, you need to have at least one node
    pasarguard  | INFO:     2025-10-17 16:49:14,664 - PasarGuard v1.0.1
    pasarguard  | INFO:     2025-10-17 16:49:14,667 - Application startup complete.
    pasarguard  | INFO:     2025-10-17 16:49:14,667 - Uvicorn running on unix socket /var/lib/pasarguard/pasarguard.socket (Press CTRL+C to quit)
    
  11. CryZFix commented on Oct 17, 2025

    @CryZFix
    Author

    it turned out that the problem was with the caddy in the self-sni proxying configuration after migration from marzban.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions