mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-12 18:48:08 -05:00
Gitea 'pages' #92
Closed
opened 2025-11-02 03:08:23 -06:00 by GiteaMirror
·
32 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0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3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#92
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking 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?
Originally created by @auuuuuzzzzzpallauzzzzz on GitHub (Nov 29, 2016).
Let people have a repository to upload a static website, like github pages.
tldr: use software that integrate like:
@tboerger commented on GitHub (Nov 29, 2016):
There have been already discussions about that in the past. This is a pretty huge feature and it requires additional domain/subdomain handling.
@auuuuuzzzzzpallauzzzzz commented on GitHub (Nov 29, 2016):
Why not instead just
Maybe the URL is too long? Or are there security problems?
@tboerger commented on GitHub (Nov 29, 2016):
It must be a different domain because of security, otherwise somebody can inject malicious code that steals the session cookie.
@bkcsoft commented on GitHub (Nov 29, 2016):
this should be done with CI and a http-proxy (like nginx, træfik, etc)
@tboerger commented on GitHub (Nov 29, 2016):
Some static page feature should be nice, but first it requires a proper proposal so that somebody can estimate the requirements.
@bkcsoft commented on GitHub (Dec 2, 2016):
Even static page required the use of a different domain (because JS...). ALL other git services implement this by using a CI & http-proxy...
@tboerger commented on GitHub (Dec 2, 2016):
But basic functionality to provide that can also be integrated into Gitea. Maybe at some point if we support plugins.
@bkcsoft commented on GitHub (Dec 2, 2016):
Well yes, we could build it... but unless we add multi-host we're screwed 😛
@tboerger commented on GitHub (Dec 2, 2016):
And to clarify all requirements and all the changes this needs i suggested a proposal ;)
@lunny commented on GitHub (Feb 23, 2017):
In fact, we can start a new web service for the page on the same binary according to user's config.
@ShalokShalom commented on GitHub (Jul 27, 2017):
It's very easy to implement this with Caddy: https://caddyserver.com/docs/http.git
@techknowlogick commented on GitHub (Jan 23, 2019):
Closing this as it can be better served by something such as Drone, Minio & Caddy together (or as @ShalokShalom mentioned, just caddy in itself).
@ghost commented on GitHub (Jan 29, 2019):
A pages feature is the only reason I would use GitLab CE over Gitea.
@davidak commented on GitHub (Jan 30, 2019):
@archiebaer when you not want to setup your own server, have you considered hosting your static website at https://neocities.org/?
@pat-s commented on GitHub (Feb 13, 2019):
@ShalokShalom Is there any detailed guide on how to use
caddyspecifically with Gitea? Trying since hours to get this running :/@ShalokShalom commented on GitHub (Feb 20, 2019):
@pat-s Sorry for the delay. Did you get it running?
@pat-s commented on GitHub (Feb 20, 2019):
No, not yet. A guide would be highly appreciated.
@bricewge commented on GitHub (Feb 23, 2019):
@pat-s Here is a working example where a hugo blog is build on the caddy server; note that you will need a caddy binary compiled with the git plugin.
@ShalokShalom commented on GitHub (Mar 1, 2019):
Can we put this into the documentation?
@pat-s commented on GitHub (Mar 1, 2019):
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.
I always get the following error:
Also this video did not help.
How can I deploy the site to, let's say,
<domain>/<repo>/<caddy>(https://123.org/repo/caddy)?@bricewge commented on GitHub (Mar 2, 2019):
@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 https://github.com/go-gitea/gitea/issues/6163#issuecomment-466601351; 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.
@ShalokShalom commented on GitHub (Mar 7, 2019):
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.
@hoijui commented on GitHub (May 1, 2019):
Let's say I have everything setup: a caddy server with git support, ready to serve repos under a sub-domain.
How would I make it, so that if a gitea user creates a new repository, and uploads a
g-pagesbranch, for example, it will be hosted on repo.user.sub-domain.domain? Or more specifically: how woudl I start a script that triggers the creation of a new sub-domain and directory on the cady server, clones the repo and sets up a hook so changes to theg-pagesbranch get published immediately?So the question is mostly, about how to automate the process; how to trigger a web-repo-creating script from within gitea, when a new repo is created.
@hoijui commented on GitHub (May 1, 2019):
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)
@bricewge commented on GitHub (May 1, 2019):
I don't think
giteacan do that yet but it would be great to have this feature. A hacky workaround would be to useinotifywaitor systemd's.pathto monitor the creation of the directories$GITEA_WORK_DIR/repositories/*/g-pages.@hoijui commented on GitHub (May 1, 2019):
oh wow... thanks for the info.
so basically I would do this:
$GITEA_WORK_DIR/repositories/*/*for the creation of new reposupdategit hook (see end of page)g-pagesbranch is updated, if such repo does not yet exist@hoijui commented on GitHub (May 1, 2019):
links for documentation:
@ShalokShalom commented on GitHub (May 1, 2019):
You could host it via IPFS: This means no Server are in place, all decentralised
@hoijui commented on GitHub (May 2, 2019):
thats a good idea, but it woudl only cover a small part of it, namely content storage.
one would still need a build server, an IPFS gateway for ones content, sub-domain mapping to that content, and triggering of builds from gitea.
... or do we?
what if we setup a pre-push hook for all the devs, which would generate the static pages before pushing? is that feasible?
that woudl at least remove the requirement for a build-server.
@davidak commented on GitHub (May 2, 2019):
@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).
@ShalokShalom commented on GitHub (May 2, 2019):
Cloudflare is nice and helps us:
https://developers.cloudflare.com/distributed-web/ipfs-gateway/connecting-website/
@sblisesivdin commented on GitHub (May 4, 2019):
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.