diff --git a/docker-compose.yml b/docker-compose.yml index 0cf3bda..cdae25c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,8 +18,10 @@ services: privatebin: image: privatebin/nginx-fpm-alpine:stable volumes: - - ./privatebin.conf.php:/srv/cfg/conf.php + - ./privatebin.conf.php:/srv/cfg/conf.php:ro,Z - privatebin-data:/srv/data + environment: + - SHORT_DOMAIN=${SHORT_DOMAIN} labels: - traefik.enable=true - traefik.http.routers.privatebin.rule=Host(`${PASTE_DOMAIN}`) diff --git a/privatebin.conf.php b/privatebin.conf.php index 25c1d3a..6b939e6 100644 --- a/privatebin.conf.php +++ b/privatebin.conf.php @@ -68,7 +68,9 @@ availabletemplates[] = "bootstrap-compact-page" ; in privatebin.conf.php ([main] section) ; important: only do this with your self-hosted shortener (see note below) -urlshortener = "https://{env.SHORT_DOMAIN}/shorten?link=" +; urlshortener = "https://${env.SHORT_DOMAIN}/shorten?link=" +urlshortener = "https://s.ion606.com/shorten?link=" + ; (optional) Whether to shorten the URL by default when a new document is created. ; If set to true, the "Shorten URL" functionality will be automatically called.