Git Product home page Git Product logo

codeberg-pages-docker's Introduction

codeberg-pages-docker

Run Codeberg Pages in conjuction with your own self-hosted Gitea instance using Docker. Codeberg Pages is a Go application that serves the content of repos on a Gitea server over HTTPS and generates an SSL certificate for domains.

Usage instructions

  • Add a .domains file to your repository. Multiple domains can be added using line breaks.
  • Add a CNAME entry to the domain in your DNS server/provider's panel custom.domain. IN CNAME branch.repo.owner.pages.domain

(For example, to have the 'pages' branch on https://git.example.com/admin/pages-repo point to example.org, it would be example.org. IN CNAME pages.pages-repo.admin.git.example.com)

Environment variables

These can be set either in the Dockerfile or in whichever Docker client application you use.

Variable name Purpose Default value
PAGES_DOMAIN The domain your pages should be served from pages.domain
GITEA_ROOT The domain your Gitea instance is served from https://git.domain
GITEA_API_TOKEN An (optional) requirement for accessing private repos <not set>
RAW_DOMAIN The domain raw resources (for resources outside the 'pages' branch) to be hosted on raw.pages.domain
RAW_INFO_PAGE The page loaded if a request for a raw resource returns 404 <not set>
ACME_API The domain ACME requests for certificate renewals will be made https://acme.mock.directory
ACME_EMAIL The email address sent to the ACME provider during requests [email protected]
ACME_USE_RATE_LIMITS Defines whether requests to the ACME server are rate-limited true
DNS_PROVIDER The DNS provider used to validate requests for ACME certificates <not set>
ENABLE_HTTP_SERVER Enable HTTP requests (on port 80) to be made to the Pages server true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.