Hi,
I'm having a problem configuring the proxy as I want to restrict the access of it, but the UI URL is the same as the API package URL. I'm using traefik right now and here is my config :
pkg-proxy:
container_name: "pkg-proxy"
image: ghcr.io/git-pkgs/proxy:latest
restart: unless-stopped
platform: linux
environment:
PROXY_LISTEN: ":8080"
PROXY_BASE_URL: "http://pkg-proxy:8080"
PROXY_STORAGE_PATH: "/data/artifacts"
PROXY_DATABASE_PATH: "/data/proxy.db"
volumes:
- pkg_proxy_data:/data
ports:
- "127.0.0.1:8080:8080"
networks:
vpn_network:
labels:
traefik.enable: "true"
traefik.docker.network: "vpn_network"
traefik.http.services.pkg-proxy.loadbalancer.server.port: "8080"
traefik.http.middlewares.pkg-proxy-strip.stripprefix.prefixes: "/subpath"
# HTTP
traefik.http.routers.pkg-proxy.rule: "Host(`domain.com`) && PathPrefix(`/subpath`)"
traefik.http.routers.pkg-proxy.entrypoints: "web"
traefik.http.routers.pkg-proxy.middlewares: "vpn-admin,pkg-proxy-strip"
# HTTPS
traefik.http.routers.pkg-proxy-secure.rule: "Host(`domain.com`) && PathPrefix(`/subpath`)"
traefik.http.routers.pkg-proxy-secure.entrypoints: "websecure"
traefik.http.routers.pkg-proxy-secure.middlewares: "vpn-admin,pkg-proxy-strip"
traefik.http.routers.pkg-proxy-secure.tls.certresolver: "dns-resolver"
Having a ENV var for setting the UI path diffrent from the API path would let me have more security over access of the proxy
Hi,
I'm having a problem configuring the proxy as I want to restrict the access of it, but the UI URL is the same as the API package URL. I'm using traefik right now and here is my config :
Having a ENV var for setting the UI path diffrent from the API path would let me have more security over access of the proxy