mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #520] [MERGED] refactor!: serve the static frontend trough the backend #750
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/520
Author: @stonith404
Created: 5/9/2025
Status: ✅ Merged
Merged: 5/17/2025
Merged by: @stonith404
Base:
v1.0.0← Head:feat/proxy-frontend📝 Commits (10+)
9123d48proxy frontend trough backend7712533adapt Dockerfile9e5bd9cuse old volume path for backwards compability830879dadapt environment vairables33da15fremove caddy references8623282use port 80 as default port for backwards compabilityf1626f3remove unnecessary route check70a25c8simplify error check if frontend not included4eb12b5Merge branch 'main' into feat/proxy-frontende58ee79ignore typecheck on frontendFS📊 Changes
74 files changed (+771 additions, -817 deletions)
View changed files
📝
.devcontainer/devcontainer.json(+1 -2)📝
.dockerignore(+5 -1)📝
.env.example(+1 -1)📝
.github/workflows/backend-linter.yml(+1 -0)➖
.github/workflows/build-and-push-docker-image.yml(+0 -50)📝
.github/workflows/e2e-tests.yml(+4 -4)➕
.github/workflows/release.yml(+84 -0)📝
.github/workflows/svelte-check.yml(+1 -1)📝
.github/workflows/unit-tests.yml(+1 -1)📝
.github/workflows/update-aaguids.yml(+1 -0)📝
.gitignore(+2 -0)➖
.vscode/tasks.json(+0 -37)📝
CONTRIBUTING.md(+7 -14)📝
Dockerfile(+24 -29)📝
backend/.env.example(+7 -10)➕
backend/frontend/frontend_excluded.go(+9 -0)➕
backend/frontend/frontend_included.go(+77 -0)➕
backend/frontend/shared.go(+5 -0)📝
backend/internal/bootstrap/router_bootstrap.go(+14 -0)📝
backend/internal/common/env_config.go(+9 -7)...and 54 more files
📄 Description
Fixes: https://github.com/pocket-id/pocket-id/issues/536
TODO
Breaking changes
The following breaking changes should be documented in version
1.0.0:docker-compose.ymlhas to be changed to1411.PUBLIC_UI_CONFIG_DISABLEDhas been renamed toUI_CONFIG_DISABLEDCADDY_DISABLEDhas been removed. If you've disabled Caddy, you probably have path mappings to/.well-knownand/apiin your reverse proxy configuration. These mappings aren't necessary anymore, your reverse proxy should now solely point to Pocket ID on port1411(or the port set with thePORTvariable).CADDY_PORThas been removed and replaced byPORTBACKEND_PORThas been removed and replaced byPORTPORThas been changed. This variable now doesn't change the port of the frontend anymore, but for the whole application.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.