Add language redirection to web app Dockerfile (closes #32) #39

Merged
luca0N merged 5 commits from dev_client_dockerfile_i18n into dev 2026-01-30 22:16:02 +00:00
Owner

In the web client Dockerfile, update the Apache HTTP Server
configuration so that it redirects end-users to the appropriate path
based on their `Accept-Language' HTTP header, which specifies the user
agent preferred language.

Additionally, the Apache HTTP Server configuration that was inlined in
the Dockerfile was moved to a dedicated file.

In the web client Dockerfile, update the Apache HTTP Server configuration so that it redirects end-users to the appropriate path based on their `Accept-Language' HTTP header, which specifies the user agent preferred language. Additionally, the Apache HTTP Server configuration that was inlined in the Dockerfile was moved to a dedicated file.
luca0N self-assigned this 2026-01-23 22:22:14 +00:00
In the web client Dockerfile, update the Apache HTTP Server
configuration so that it redirects end-users to the appropriate path
based on their `Accept-Language' HTTP header, which specifies the user
agent preferred language.

Additionally, the Apache HTTP Server configuration that was inlined in
the Dockerfile was moved to a dedicated file.
luca0N changed title from Add language redirection to web app Dockerfile to Add language redirection to web app Dockerfile (closes #32) 2026-01-23 22:22:29 +00:00
Author
Owner

Some changes must be made to this branch before merging the pull request. For instance, some paths are broken (like the GET lanbassador-config.json, and the toolbar icon due to a leading slash).

Some changes must be made to this branch before merging the pull request. For instance, some paths are broken (like the [`GET` `lanbassador-config.json`](https://git.luca0n.com/luca0N/lanbassador/src/commit/860b9db08713a9641b024fc0ebd8a9de97876fb1/client/src/app/host-list.ts#L95), and [the toolbar icon](https://git.luca0n.com/luca0N/lanbassador/src/commit/860b9db08713a9641b024fc0ebd8a9de97876fb1/client/src/app/app.html#L52) due to a leading slash).
luca0N changed title from Add language redirection to web app Dockerfile (closes #32) to WIP: Add language redirection to web app Dockerfile (closes #32) 2026-01-23 22:24:55 +00:00
In the web app Dockerfile, move common assets to the root of htdocs
directory.  This fixes some issues with broken assets being referenced
from the root of the website.
Create a symlink for the web app assets directory, which is located at
the parent of the directory that contains all internationalized
directories (e.g., en/, pt).  This allows for more flexibility for those
who would like to host the web app at an existing site.

This commit changes the `app.html' page to fetch affected resources with
relative paths, and the web app Dockerfile to create the required
symlinks.
In the web app Docker image, remove the Apache HTTP Server `Indexes'
option (which is enabled by default).  The `Indexes' option is not
necessary for this web app.
Remove the default "It works!" HTML page that's added by default in the
Apache package for Alpine Linux.
luca0N changed title from WIP: Add language redirection to web app Dockerfile (closes #32) to Add language redirection to web app Dockerfile (closes #32) 2026-01-30 22:15:53 +00:00
luca0N deleted branch dev_client_dockerfile_i18n 2026-01-30 22:16:03 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
luca0N/lanbassador!39
No description provided.