Our Personal Data Server from scratch! tranquil.farm
oauth atproto pds rust postgresql objectstorage fun

feat: add in-backend frontend hosting back #32

merged opened by nel.pet targeting main from feat/built-in-frontend-server
Labels

None yet.

assignee
Participants 1
AT URI
at://did:plc:h5wsnqetncv6lu2weom35lg2/sh.tangled.repo.pull/3mfywro7uzd22
+14 -14
Interdiff #2 โ†’ #3
Cargo.lock

This file has not been changed.

Cargo.toml

This file has not been changed.

crates/tranquil-config/src/lib.rs

This file has not been changed.

crates/tranquil-pds/Cargo.toml

This file has not been changed.

+14 -14
crates/tranquil-pds/src/lib.rs
··· 643 643 get(oauth::endpoints::oauth_authorization_server), 644 644 ); 645 645 646 - if cfg!(feature = "frontend") {} 647 - 648 - let router = Router::new() 646 + Router::new() 649 647 .nest_service("/xrpc", xrpc_service) 650 648 .nest("/oauth", oauth_router) 651 649 .nest("/.well-known", well_known_router) ··· 655 653 get(oauth::endpoints::oauth_authorization_server), 656 654 ); 657 655 658 - Router::new() 656 + if cfg!(feature = "frontend") {} 657 + 658 + let router = Router::new() 659 659 .nest_service("/xrpc", xrpc_service) 660 660 .nest("/oauth", oauth_router) 661 661 .nest("/.well-known", well_known_router) ··· 690 690 util::HEADER_ATPROTO_CONTENT_LABELERS, 691 691 ]), 692 692 ) 693 + .with_state(state) 694 + } 695 + 696 + async fn rewrite_422_to_400(response: axum::response::Response) -> axum::response::Response { 697 + 698 + 699 + 700 + util::HEADER_ATPROTO_CONTENT_LABELERS, 701 + ]), 702 + ) 693 703 .with_state(state); 694 704 695 705 if cfg!(feature = "frontend") && tranquil_config::get().frontend.enabled { ··· 719 729 } 720 730 721 731 router 722 - } 723 - 724 - async fn rewrite_422_to_400(response: axum::response::Response) -> axum::response::Response { 725 - 726 - 727 - 728 - util::HEADER_ATPROTO_CONTENT_LABELERS, 729 - ]), 730 - ) 731 - .with_state(state) 732 732 } 733 733 734 734 async fn rewrite_422_to_400(response: axum::response::Response) -> axum::response::Response {
crates/tranquil-pds/src/oauth/endpoints/metadata.rs

This file has not been changed.

deploy/nginx/nginx-quadlet.conf

This file has not been changed.

docs/install-debian.md

This file has not been changed.

frontend/nginx-quadlet.conf

This file has not been changed.

frontend/nginx.conf

This file has not been changed.

frontend/public/oauth-client-metadata.json

This file has not been changed.

frontend/src/lib/migration/atproto-client.ts

This file has not been changed.

frontend/src/lib/oauth.ts

This file has not been changed.

frontend/src/routes/ActAs.svelte

This file has not been changed.

frontend/src/tests/migration/atproto-client.test.ts

This file has not been changed.

module.nix

This file has not been changed.

nginx.frontend.conf

This file has not been changed.

test.nix

This file has not been changed.

History

5 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
feat: add back built-in frontend hosting to the backend
expand 0 comments
pull request successfully merged
nel.pet submitted #3
1 commit
expand
feat: add back built-in frontend hosting to the backend
expand 0 comments
1 commit
expand
feat: add back built-in frontend hosting to the backend
expand 0 comments
1 commit
expand
feat: add back built-in frontend hosting to the backend
expand 0 comments
nel.pet submitted #0
1 commit
expand
feat: add in-backend frontend hosting back
expand 0 comments