Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wrote a tutorial that could come in handy for users that would like to access Dawarich from a domain name. The guide is placed in the docs folder and a reference to it is made in the main page of this repository. The guide is written in a way that even an absolute beginner should be able to set up a reverse proxy.
It explains changing the APPLICATION_HOST environment variable to the proper value, and it includes two example configurations, where one is for Nginx and another for Apache2. It also includes enabling the proper modules for the Apache2 configuration, so the user does not run into trouble when trying out the example configuration.
I have tested out both provided configurations, and managed to navigate to my Dawarich instance without any issues. The Dawarich instance itself also worked properly.
Due to my lack of knowledge with other servers, I cannot provide examples for other servers such as Caddy or Traefik. But I assume that Nginx and Apache2 covers most users.
If anyone has managed to get reverse proxy working with another web server, then feel free to contribute.