forked from hexbear-collective/lemmy-hexbear
Compare commits
merge into: StalinistApologist:main
StalinistApologist:deployment-based-ci
StalinistApologist:dev
StalinistApologist:feature/better-mod-tooling
StalinistApologist:feature/better-modlog
StalinistApologist:feature/better-newuser-experience
StalinistApologist:feature/frontend-selfhost
StalinistApologist:feature/hexbear-namechange
StalinistApologist:feature/join-room-endpoints
StalinistApologist:feature/opt-out-all
StalinistApologist:feature/pictrs-v2.5
StalinistApologist:feature/restore-post-wipe
StalinistApologist:feature/settings-cleanup
StalinistApologist:fix/better-ratelimits
StalinistApologist:fix/clean-userview-responces
StalinistApologist:fix/dont-cache-scripts
StalinistApologist:fix/expanded-slurfilter
StalinistApologist:fix/ipv6_ratelimit_support
StalinistApologist:fix/permananently-typo
StalinistApologist:fix/remove-sitebans-from-site-endpoint
StalinistApologist:fix/rust-panic
StalinistApologist:fix/sitemod-removal
StalinistApologist:fix/youtube-beforeyoucontinue
StalinistApologist:main
StalinistApologist:prod
StalinistApologist:re-enable_annonlog_feb_2021
hexbear-collective:deployment-based-ci
hexbear-collective:dev
hexbear-collective:feature/better-mod-tooling
hexbear-collective:feature/better-modlog
hexbear-collective:feature/better-newuser-experience
hexbear-collective:feature/codecov
hexbear-collective:feature/frontend-selfhost
hexbear-collective:feature/hexbear-namechange
hexbear-collective:feature/join-room-endpoints
hexbear-collective:feature/opt-out-all
hexbear-collective:feature/pictrs-v2.5
hexbear-collective:feature/restore-post-wipe
hexbear-collective:feature/settings-cleanup
hexbear-collective:fix/better-ratelimits
hexbear-collective:fix/clean-userview-responces
hexbear-collective:fix/dont-cache-scripts
hexbear-collective:fix/expanded-slurfilter
hexbear-collective:fix/ipv6_ratelimit_support
hexbear-collective:fix/permananently-typo
hexbear-collective:fix/remove-sitebans-from-site-endpoint
hexbear-collective:fix/sitemod-removal
hexbear-collective:fix/update-dependencies
hexbear-collective:fix/youtube-beforeyoucontinue
hexbear-collective:main
hexbear-collective:prod
hexbear-collective:re-enable_annonlog_feb_2021
pull from: StalinistApologist:feature/frontend-selfhost
StalinistApologist:deployment-based-ci
StalinistApologist:dev
StalinistApologist:feature/better-mod-tooling
StalinistApologist:feature/better-modlog
StalinistApologist:feature/better-newuser-experience
StalinistApologist:feature/frontend-selfhost
StalinistApologist:feature/hexbear-namechange
StalinistApologist:feature/join-room-endpoints
StalinistApologist:feature/opt-out-all
StalinistApologist:feature/pictrs-v2.5
StalinistApologist:feature/restore-post-wipe
StalinistApologist:feature/settings-cleanup
StalinistApologist:fix/better-ratelimits
StalinistApologist:fix/clean-userview-responces
StalinistApologist:fix/dont-cache-scripts
StalinistApologist:fix/expanded-slurfilter
StalinistApologist:fix/ipv6_ratelimit_support
StalinistApologist:fix/permananently-typo
StalinistApologist:fix/remove-sitebans-from-site-endpoint
StalinistApologist:fix/rust-panic
StalinistApologist:fix/sitemod-removal
StalinistApologist:fix/youtube-beforeyoucontinue
StalinistApologist:main
StalinistApologist:prod
StalinistApologist:re-enable_annonlog_feb_2021
hexbear-collective:deployment-based-ci
hexbear-collective:dev
hexbear-collective:feature/better-mod-tooling
hexbear-collective:feature/better-modlog
hexbear-collective:feature/better-newuser-experience
hexbear-collective:feature/codecov
hexbear-collective:feature/frontend-selfhost
hexbear-collective:feature/hexbear-namechange
hexbear-collective:feature/join-room-endpoints
hexbear-collective:feature/opt-out-all
hexbear-collective:feature/pictrs-v2.5
hexbear-collective:feature/restore-post-wipe
hexbear-collective:feature/settings-cleanup
hexbear-collective:fix/better-ratelimits
hexbear-collective:fix/clean-userview-responces
hexbear-collective:fix/dont-cache-scripts
hexbear-collective:fix/expanded-slurfilter
hexbear-collective:fix/ipv6_ratelimit_support
hexbear-collective:fix/permananently-typo
hexbear-collective:fix/remove-sitebans-from-site-endpoint
hexbear-collective:fix/sitemod-removal
hexbear-collective:fix/update-dependencies
hexbear-collective:fix/youtube-beforeyoucontinue
hexbear-collective:main
hexbear-collective:prod
hexbear-collective:re-enable_annonlog_feb_2021
3 Commits
main
...
feature/fr
Author | SHA1 | Message | Date |
---|---|---|---|
|
1bb0226b5b |
change docker-compose to expose frontend server ports
|
12 months ago |
|
0d993f10f9 |
update dockercompose to expose frontend port
|
12 months ago |
|
5d3f1a5117 |
remove frontend hosting from rust backend, wip new nginx conf
|
12 months ago |
9 changed files with 34 additions and 81 deletions
-
1README.md
-
9docker/chapo-dev/docker-compose.yml
-
18docker/chapo-dev/nginx-lemmy-dev.conf
-
9docker/chapo-prod/docker-compose.yml
-
5docker/dev/docker_update.sh
-
1server/lemmy_utils/src/settings.rs
-
12server/src/main.rs
-
59server/src/routes/index.rs
-
1server/src/routes/mod.rs
@ -1,6 +1,5 @@ |
|||
#!/bin/sh |
|||
set -e |
|||
|
|||
sudo chown -R 991:991 volumes/pictrs |
|||
sudo docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest |
|||
sudo docker-compose up -d |
|||
docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest |
|||
docker-compose up -d |
@ -1,59 +0,0 @@ |
|||
use actix_files::NamedFile;
|
|||
use actix_web::*;
|
|||
use lemmy_utils::settings::Settings;
|
|||
|
|||
pub fn config(cfg: &mut web::ServiceConfig) {
|
|||
cfg
|
|||
.route("/", web::get().to(index))
|
|||
.route(
|
|||
"/home/data_type/{data_type}/listing_type/{listing_type}/sort/{sort}/page/{page}",
|
|||
web::get().to(index),
|
|||
)
|
|||
.route("/login", web::get().to(index))
|
|||
.route("/create_post", web::get().to(index))
|
|||
.route("/create_community", web::get().to(index))
|
|||
.route("/create_private_message", web::get().to(index))
|
|||
.route("/communities/page/{page}", web::get().to(index))
|
|||
.route("/communities", web::get().to(index))
|
|||
.route("/post/{id}/comment/{id2}", web::get().to(index))
|
|||
.route("/post/{id}", web::get().to(index))
|
|||
.route(
|
|||
"/c/{name}/data_type/{data_type}/sort/{sort}/page/{page}",
|
|||
web::get().to(index),
|
|||
)
|
|||
.route("/c/{name}", web::get().to(index))
|
|||
.route("/community/{id}", web::get().to(index))
|
|||
.route(
|
|||
"/u/{username}/view/{view}/sort/{sort}/page/{page}",
|
|||
web::get().to(index),
|
|||
)
|
|||
.route("/u/{username}", web::get().to(index))
|
|||
.route("/user/{id}", web::get().to(index))
|
|||
.route("/inbox", web::get().to(index))
|
|||
.route("/modlog/community/{community_id}", web::get().to(index))
|
|||
.route("/modlog", web::get().to(index))
|
|||
.route("/setup", web::get().to(index))
|
|||
.route("/admin", web::get().to(index))
|
|||
.route("/sitemod", web::get().to(index))
|
|||
.route(
|
|||
"/search/q/{q}/type/{type}/sort/{sort}/page/{page}",
|
|||
web::get().to(index),
|
|||
)
|
|||
.route("/search", web::get().to(index))
|
|||
.route("/sponsors", web::get().to(index))
|
|||
.route("/contributing", web::get().to(index))
|
|||
.route("/welcome", web::get().to(index))
|
|||
.route("/about", web::get().to(index))
|
|||
.route("/ppb", web::get().to(index))
|
|||
.route("/reports", web::get().to(index))
|
|||
.route("/privacy_policy", web::get().to(index))
|
|||
.route("/tos", web::get().to(index))
|
|||
.route("/password_change/{token}", web::get().to(index))
|
|||
.route("/instances", web::get().to(index));
|
|||
}
|
|||
|
|||
async fn index() -> Result<NamedFile, Error> {
|
|||
Ok(NamedFile::open(
|
|||
Settings::get().front_end_dir + "/index.html",
|
|||
)?)
|
|||
}
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue