Hi guys,
I've just deployed PsiTransfer, a file transfer container, and there's a bug in it where if you share it on Facebook, Facebook adds their fbclid (e.g. ?fbclid=IwAR2AqhUPNlgWghXVvXyTNRaesLzvz8QM78EqvczhfolPMFnwCj_gahasz0)
(image from another user with the same issue)
Is there a way to transform the URL so that I can remove this at all?
My current compose is:
psitransfer:
container_name: Psitransfer
restart: unless-stopped
image: psitrax/psitransfer:latest
security_opt:
- no-new-privileges:true
environment:
PSITRANSFER_UPLOAD_PASS: $PSITRANSFER_UPLOAD_PASS
PSITRANSFER_ADMIN_PASS: $PSITRANSFER_ADMIN_PASS
networks:
pihole:
ipv4_address: '172.22.0.124'
volumes:
- $USERDIR/Psitransfer/data:/data
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.psitransfer-rtr.entrypoints=https"
- "traefik.http.routers.psitransfer-admin.entrypoints=https"
- "traefik.http.routers.psitransfer-rtr.rule=Host(`files.$DOMAINNAME`)"
- "traefik.http.routers.psitransfer-admin.rule=Host(`files.$DOMAINNAME`) && Path(`/admin`)"
- "traefik.http.routers.psitransfer-admin.tls=true"
- "traefik.http.routers.psitransfer-rtr.tls=true"
## Middlewares
# - "traefik.http.routers.psitransfer-rtr.middlewares=chain-basic-auth@file"
- "traefik.http.routers.psitransfer-rtr.middlewares=chain-no-auth@file"
- "traefik.http.routers.psitransfer-admin.middlewares=chain-authelia@file" # Authelia for Admin
## HTTP Services
- "traefik.http.routers.psitransfer-rtr.service=psitransfer-svc"
- "traefik.http.services.psitransfer-svc.loadbalancer.server.port=3000"
I understand how to transform a URL to add something static like a subdirectory (as per https://doc.traefik.io/traefik/middlewares/stripprefix/), but not quite sure how to get it to remove things that are dynamic/don't end in a slash.
Thanks!