Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self hosting support #34

Merged
merged 9 commits into from
Jul 29, 2023
Merged

Self hosting support #34

merged 9 commits into from
Jul 29, 2023

Conversation

sheodox
Copy link
Owner

@sheodox sheodox commented Jul 29, 2023

This adds support for self hosting, with some configuration options to lock down logins to one instance, change the default instance, or omit help text on the login page.

Also makes the favorite community button more obvious.

Fixes #24

This lets you decide to lock down the usable instances (others can be browsed manually as a guest but can't sign in) and disable the links to any other instance. Also allows setting the sveltekit adapter by environment variable.
I followed a Snyk tutorial on how to build secure images, but adapted parts of it to Sveltekit. I also needed to change some way environment variables are loaded so I could load them in without them needing to be present during the build step.
The button to favorite a community was only showing up if you hovered the icon. Very few people thought to do this so people didn't think this was a feature. Now if you hover over the entire community bar it'll make the icon mostly transparent and show the button so it should be more obvious to anyone who uses the sidebar.
It didn't have permissions and couldn't install
@vercel
Copy link

vercel bot commented Jul 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sx-lemmy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2023 1:02am

@cloudflare-pages
Copy link

cloudflare-pages bot commented Jul 29, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6cb5340
Status: ✅  Deploy successful!
Preview URL: https://e6a16ee9.alexandrite.pages.dev
Branch Preview URL: https://self-hosting.alexandrite.pages.dev

View logs

@sheodox sheodox merged commit a4e33b3 into main Jul 29, 2023
4 checks passed
@sheodox sheodox deleted the self-hosting branch July 29, 2023 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Readme for instance admin to host the project
1 participant