Skip to content
New issue

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

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

Already on GitHub? # to your account

use hedgedoc container hostname if default URL is not accessible #18

Merged
merged 2 commits into from
Jan 2, 2021
Merged

use hedgedoc container hostname if default URL is not accessible #18

merged 2 commits into from
Jan 2, 2021

Conversation

lanjelot
Copy link
Collaborator

My humble suggestion so that ctfpad works out of the box after a simple git clone ..; docker-compose up.
Note that:

  • it is only if http://localhost:3000 is down that we sub it for http://hedgedoc:3000
  • so if HEDGEDOC_URL was changed and is not accessible, then the user will get the right error message referencing the URL they wrongly configured

@hugsy
Copy link
Owner

hugsy commented Dec 30, 2020

I agree with the intention, but the implementation is terrible. It'd be way more efficient to use a cached global variable for this.

@hugsy hugsy merged commit 7ba3a8a into hugsy:master Jan 2, 2021
@lanjelot lanjelot deleted the hedgedoc-failover branch January 3, 2021 16:14
@hugsy hugsy added this to the 0.1 milestone Jun 21, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants