OpenSign icon indicating copy to clipboard operation
OpenSign copied to clipboard

[Bug]: Changing PUBLIC_URL does not change URLs in MongoDB

Open DunklerPhoenix opened this issue 10 months ago • 2 comments

Issue Description

Heho If I change the PUBLIC_URL to a new value then my signatures and old documents point to the old address. I think they are not updated in the database

Expected Behavior

Changing the PUBLIC_URL should reflect at all elements

Current Behavior

Documents and signatures become unavailable.

Steps to reproduce

  1. Set up OS with PUBLIC_URL=https://sign.domain.com
  2. create a signature and upload some documents
  3. change PUBLIC_URL to PUBLIC_URL=https://sign.docs.domain.com
  4. see many errors in the webinterface and old links in browserconsole error messages

Screenshots of the issue(optional)

edit signature screen: Image

opening documents:

Image

Operating System [e.g. MacOS Sonoma 14.1, Windows 11]

Linux / Docker

What browsers are you seeing the problem on?

Brave

What version of OpenSignâ„¢ are you seeing this issue on? [e.g. 1.0.6]

2.6.0 opensign/opensign@sha256:f459366419a3c4d9b72c2961b49bf36ec935d894087d48309e4bae9d19e2d461 opensign/opensignserver@sha256:d8f474da54abb6f23dfe45f2c82e3ed69ce9a15affa19a00ec6a1d0bdb6fb4c4

What environment are you seeing the problem on?

Hosted (app.yourdomain.com)

Please check the boxes that apply to this issue report.

  • [x] I have searched the existing issues & discussions to make sure that this is not a duplicate.

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct
  • [x] I have searched the existing issues & discussions to make sure that this is not a duplicate.

DunklerPhoenix avatar Feb 10 '25 22:02 DunklerPhoenix

@DunklerPhoenix how you change your PUBLIC_URL ? and try to change the HOST_URL. if using docker then you can have a look at the environment variables with command docker exec yourcontainer env better you change from setup command set HOST_URL=https://sign.docs.domain.com/&& docker compose up

lsahidin avatar Mar 04 '25 03:03 lsahidin

I did it via .env file in docker compose, but for documents and saved signatures it still uses the old one.

The env are already the new one

DunklerPhoenix avatar Mar 04 '25 07:03 DunklerPhoenix