-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Gitea 'pages' #302
Comments
There have been already discussions about that in the past. This is a pretty huge feature and it requires additional domain/subdomain handling. |
Why not instead just
Maybe the URL is too long? Or are there security problems? |
It must be a different domain because of security, otherwise somebody can inject malicious code that steals the session cookie. |
this should be done with CI and a http-proxy (like nginx, træfik, etc) |
Some static page feature should be nice, but first it requires a proper proposal so that somebody can estimate the requirements. |
Even static page required the use of a different domain (because JS...). ALL other git services implement this by using a CI & http-proxy... |
But basic functionality to provide that can also be integrated into Gitea. Maybe at some point if we support plugins. |
Well yes, we could build it... but unless we add multi-host we're screwed 😛 |
And to clarify all requirements and all the changes this needs i suggested a proposal ;) |
In fact, we can start a new web service for the page on the same binary according to user's config. |
It's very easy to implement this with Caddy: https://caddyserver.com/docs/http.git |
Closing this as it can be better served by something such as Drone, Minio & Caddy together (or as @ShalokShalom mentioned, just caddy in itself). |
A pages feature is the only reason I would use GitLab CE over Gitea. |
@archiebaer when you not want to setup your own server, have you considered hosting your static website at https://neocities.org/? |
@ShalokShalom Is there any detailed guide on how to use |
@pat-s Sorry for the delay. Did you get it running? |
No, not yet. A guide would be highly appreciated. |
Can we put this into the documentation? |
Hm, I got my site working locally now. However, I cannot wrap my head around how I should serve/push it to the Gitea domain. domain {
root ./my-site
git {
repo <git repo>
path .repo
interval 3600
then R -q -e "bookdown::render_book('.', output_dir = '../')"
}
} I always get the following error:
Also this video did not help. How can I deploy the site to, let's say, |
@ShalokShalom You should write a PR to add it to the docs then. @pat-s It doesn't look like a good idea to serve your website under the same domain as gitea #6163 (comment); Github and Gitlab are using subdomains to publish pages. Your error message is related to caddy automatic HTTPS but I don't think it's the right place to try to solve it, you can ask about it in the caddy's forum. |
And post the solution here then, so others who find this post can relate. I can create an article for the docs then, have it not done by myself yet. |
Let's say I have everything setup: a caddy server with git support, ready to serve repos under a sub-domain. |
btw, we plan to set this up while documenting it. if we manage to do so, the documentation wil be published (and lined to here) |
I don't think |
oh wow... thanks for the info. so basically I would do this:
|
You could host it via IPFS: This means no Server are in place, all decentralised |
thats a good idea, but it woudl only cover a small part of it, namely content storage. ... or do we? |
@hoijui everyone must have the build environment configured. Seems not very elegant, especially for website content editors. IPFS would be a nice option, but i think it should not be default (yet). |
Cloudflare is nice and helps us: https://developers.cloudflare.com/distributed-web/ipfs-gateway/connecting-website/ |
Pages is a good idea, however it is just a "follow the leader" thing. Can wiki feature extended to make more elegant pages? Wiki is already implemented. |
Let people have a repository to upload a static website, like github pages.
tldr: use software that integrate like:
The text was updated successfully, but these errors were encountered: