# Gitea Pages hosting

**URL:** <https://forum.gitea.com/t/gitea-pages-hosting/8535>\
**Category:** Gitea Usages\
**Created:** [February 5, 2024, 3:54pm UTC](https://forum.gitea.com/t/gitea-pages-hosting/8535 "2024-02-05T15:54:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mgite/32/4371_2.png) [@mgite](https://forum.gitea.com/u/mgite)\
**Post date:** [February 5, 2024, 3:54pm UTC](https://forum.gitea.com/t/gitea-pages-hosting/8535/1 "2024-02-05T15:54:03Z")

</div>

Hello,  
I was searching for github pages alternatives and found this project h/t/t/p/s://github.com/42wim/caddy-gitea

I build it’s docker image and configured as it said in readme. My Caddyfile looks like this:

```auto
{
        order gitea before file_server
}
:3000
gitea {
        server ht tp //gitea:3000
        token fh745f4Gru734Ffg34441Rfteeewt543kuerTer
        #domain mydomain.duckdns.org #this is optional
}

```

But it does not work. Page loads but without assets and it does not function properly. Browser inspect element shows this

```auto
GET ht tp s* // org.mydomain.duckdns.org/assets/stylesheets/main.50c56a3b.min.css [HTTP/2 404 159ms]
GET ht tp s* // org.mydomain.duckdns.org/assets/stylesheets/palette.06af60db.min.css [HTTP/2 404 145ms]
GET ht tp s* // org.mydomain.duckdns.org/assets/javascripts/bundle.c18c5fb9.min.js [HTTP/2 404 145ms]
GET ht tp s* // org.mydomain.duckdns.org/assets/javascripts/bundle.c18c5fb9.min.js [HTTP/2 404 103ms]
Loading failed for the <script> with source “ht tp s* // org.mydomain.duckdns.org/ ssets/javascripts/bundle.c18c5fb9.min.js”. org.duckdns.org:444:63

```

I have traefik infront which is configured to this domain \*.mydomain.duckdns.org, [mydomain.duckdns.org](http://mydomain.duckdns.org) using DNS challenge to have proper HTTPS for my docker services. org is my organization name in gitea. That is why i use [org.mydomain.duckdns.org](http://org.mydomain.duckdns.org) which is described in that project readme.

How can i fix assets loading? Does caddy cause this problem?

EDIT: links look like this because it seems you have limits for new users to put 2 urls at max in a post ☹

---

<div class="post-metadata">

**Author:** ![linkp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/linkp/32/4833_2.png) [@linkp](https://forum.gitea.com/u/linkp)\
**Post date:** [February 5, 2024, 4:19pm UTC](https://forum.gitea.com/t/gitea-pages-hosting/8535/2 "2024-02-05T16:19:13Z")

</div>

> [@mgite](#):
>
> links look like this

You don’t need to alter any URLs that are in `</> Preformatted text`. They will not be auto-linked.

This is the first that I have seen this project mentioned here. That may affect the responses. While it is an interesting project, you may need to find a place to engage with those who are using it, or invite some of its users here to join the discussion. 😀

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [November 15, 2024, 5:49am UTC](https://forum.gitea.com/t/gitea-pages-hosting/8535/5 "2024-11-15T05:49:48Z")

</div>

> **[awesome-gitea](https://gitea.com/gitea/awesome-gitea/#web-hosting)**
>
> A curated list of awesome projects related to Gitea and its soft-fork instances

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [November 15, 2024, 5:50am UTC](https://forum.gitea.com/t/gitea-pages-hosting/8535/6 "2024-11-15T05:50:02Z")

</div>


