Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change-url does not update config.json resulting in a potential 404 #271

Open
djibux opened this issue Oct 20, 2024 · 0 comments
Open

change-url does not update config.json resulting in a potential 404 #271

djibux opened this issue Oct 20, 2024 · 0 comments

Comments

@djibux
Copy link

djibux commented Oct 20, 2024

Describe the bug

When moving the app using change-url the file /home/yunohost.app/vaultwarden/config.json is not properly updated: domain is not changed.

Context

  • Hardware: Other ARM board
  • YunoHost version: 11.2.31
  • I have access to my server: Through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: stable, 1.29.1~ynh4

Steps to reproduce

  • Install the app on example.com/vault.
  • Moved the application to vault.example.com using yunohost app change-url vaultwarden -d vault.example.com -p /
  • You will get a 404 when going to vault.example.com. Strangely vault.example.com/vault works.

To fix the issue, just update /home/yunohost.app/vaultwarden/config.json by changing "domain": "https://example.com/vault" to "domain": "https://vault.example.com", then restart vaultwarden: yunohost service restart vaultwarden

Expected behavior

  • change-url should update /home/yunohost.app/vaultwarden/config.json

Logs

  • Logfile where indeed config.json in not listed in the updated files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant