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

Use caddy as the main server #1721

Closed
pgaskin opened this issue May 13, 2017 · 12 comments
Closed

Use caddy as the main server #1721

pgaskin opened this issue May 13, 2017 · 12 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@pgaskin
Copy link
Contributor

pgaskin commented May 13, 2017

I think Caddy could be used for the main part of the server. Gitea would listen on a different port on localhost, and Caddy would listen on the main port chosen by the user. This would allow us to do more complex things easier such as:

  1. Automatic HTTPS with Let's Encrypt
  2. Redirect HTTP to HTTPS
  3. Gitea pages on a separate domain
  4. Separate domain for raw files
  5. Redirect old URLs
  6. Set timeouts
  7. Listen on multiple domains and IPs

Many of the issues listed above could be fixed very easily if we integrate Caddy into Gitea.

@appleboy
Copy link
Member

I will integrate Let's Encrypt with multiple domains and redirect HTTP to HTTPS.

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 14, 2017
@lunny lunny added this to the 1.x.x milestone May 14, 2017
@sondr3
Copy link
Contributor

sondr3 commented May 14, 2017

As long as it's optional, I use nginx for everything on my server and would like to keep it how it is right now with Gitea behind nginx. Besides, I don't really understand the need for all of this in Gitea.

@sapk
Copy link
Member

sapk commented May 14, 2017

I think that it is not the role of gitea to handle all of specific frontend config. For exemple in gitea-infrastructure we use traefik and we should let that choice to user for setting inside is own env. gitea should only offer a simple http interface maybe some additional sugary but we should keep it simple.

@kolaente
Copy link
Member

What about http/2? (For which you would need a secure connection over https)

@bkcsoft
Copy link
Member

bkcsoft commented Jun 11, 2017

Just make gitea a caddy-plugin :trollface:

@bkcsoft bkcsoft mentioned this issue Jul 26, 2017
@ShalokShalom
Copy link

+1

@ShalokShalom
Copy link

@sapk I see this more as an optional choice. Add it to the documentation, support it.
Especially Gitea Pages is very important to me and a fundamental benefit to Github.
They offer only support for Jekkyl, one of some hundred of static site generators.
Open source is all about easy access, otherwise is it just hypocrisy.
Caddy offers https for everyone, in a very simple way. This means a secure internet connection and easy webpages for everyone. I think this is a great idea.

@sapk
Copy link
Member

sapk commented Jul 27, 2017

We could describe how to use caddy and gitea side by side to work like github pages that not that difficult and everything needed is allready here. Just use the git plugin of caddy to pull changes and execute a command (hugo, jekyll or otherq) if needed.

@ShalokShalom
Copy link

ShalokShalom commented Jul 27, 2017

Github pages work only with Jekkyl. Gitlab pages offer support for more. I am for IPFS anyway:

It is a distributed peer-to-peer network, which offers the hosting of static sites:

https://ipfs.io/
https://ipfs.io/ipfs/QmdPtC3T7Kcu9iJg6hYzLBWR5XCDcYMY7HV685E3kH3EcS/2015/09/15/hosting-a-website-on-ipfs/

@aoyawale
Copy link
Contributor

I agree on using nginx/http for the web server and configs

@mvdkleijn
Copy link

I'm very interested in this discussion... not so much because of caddy... but on what this discussion implies.

Is Gitea going to try to do it all... or is Gitea going to do one thing and rely on integration options for the non-core stuff...

Seems to me that a product like Gitea should focus on the core: git repo management, issues and wiki and rely on proper documentation and integration options for the other stuff. That would be my hope anyway.

Open source is about choice. Stuffing everything into Gitea, creating a big monolithic application in the process, would be horrible.

@techknowlogick
Copy link
Member

Closing as caddy in front of Gitea currently works.

@go-gitea go-gitea locked and limited conversation to collaborators Sep 3, 2020
@lunny lunny removed this from the 1.x.x milestone Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

12 participants