Questions tagged [caddy]

Caddy is a configurable web server written in Go that supports modern features such as HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and more, right out of the box.

Caddy is a configurable web server created by Matt Holt. It's written in and available for Windows, Mac, Linux, and BSD.

Caddy became famous, among other things, for being the first web server to support automatic provisioning of SSL certificates via Let's Encrypt.

It also supports modern features such as HTTP/2, IPv6, Markdown, WebSockets, FastCGI, templates and more, right out of the box.

Caddy is highly configurable using a configuration file called Caddyfile.

338 questions
0
votes
0 answers

Handshake failed when using builtin TLS package

I am having a problem/misunderstanding with SSL-TLS. My situation is the next: I have 2 backends application developed in Golang, they should communicate ech other over HTTPS, http is not allowed. Every application is running on a separate…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
0
votes
0 answers

Serving a website using Caddy

I have created an application and want to serve it using caddy. On my localhost if I run the application on 127.0.0.1:9000 and set it as proxy in the caddyfile it works. I figured I have to serve my website similarly on my production as well. Now I…
Shaurya Chaudhuri
  • 3,772
  • 6
  • 28
  • 58
0
votes
1 answer

How to run Caddy from Docker container? (443 bind: permission denied)

As you would asume, I'm just starting to work with Docker and Caddy but I'm haven't being able to run it since I'm getting the following error: Could not start HTTPS server for challenge -> listen tcp :443: bind: permission denied Here is the…
0
votes
1 answer

How to monitor Caddy web server using Monit

I have Installed Caddy server as a system service successfully using systemd. But I am unable to monitor Caddy by monit. ## Heading ##
Rubyst
  • 21
  • 2
0
votes
1 answer

I get a "hostname in certificate didn't match" error when trying to connect to a Caddy website in my Android app

Good afternoon, as said in the title, I'm unable to connect to a subdomain on my caddy-powered website in my Android app. I'm migrating the backend of the app from Heroku to my own digitalocean droplet and the app used to work while it was using…
chenshuiluke
  • 319
  • 1
  • 16
0
votes
2 answers

how to disable responding to http1 requests in nginx or apache or caddy?

I have a http2 server but by default it responds http1 requests. I want to stop my server responding to http1 requests? Most browsers might use alpn or npn. is there a possibility to advertise only http2 ? or a custom list of application protocols ?
Buddha_Peace
  • 73
  • 1
  • 9
0
votes
2 answers

Vendoring a standard library (crypto/tls)

I want to make some changes to the Go crypto/tls standard library. Is making a copy of crypto/tls in the vendor folder a good way to do this? It almost works, it seems the vendored is copy used when I compile the application (Caddy webserver). Apart…
user3340499
  • 189
  • 1
  • 10
0
votes
1 answer

Dynamic routes not working in React with Caddy

I have a React Application. I am using some routes that receives parameters in the URL (by GET), for example myapp.com/products/1 that works pretty good in local enviroment but no in my CentOS server. I have to mention that I am using npm run build…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
0
votes
0 answers

Serving Static site with Caddy gives connection refused

I have caddy installed and running in my CentOS server,mainly I have it to proxy request to 2 Golang applications that I have running and it's working great! Now, I need to serve a static site, but i't returning connection refused The structure of…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
0
votes
1 answer

Using Proxy server to switch between Golang Applications

I have a server with CentOS, and there I will have at least 4 Golang applications running, every one of them is a different site that I should be able to access in the browser with domain/subdomains as…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
0
votes
1 answer

SonarQube Returning Bad Gateway Error

I'm trying to serve SonarQube using Caddy. I'm able to view the site, but it returns 502 Bad Gateway. The service appears to be up and running. Also curling locally is rejected. curl curl -I 0.0.0.0:9000 curl: (7) Failed to connect to 0.0.0.0 port…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
0 answers

docker caddy proxy not forwarding

So I set up the caddy server using docker and have set it to proxy to another docker image that is running nodejs. However, when i hit the url it is routing to caddyserver.com instead of my nodejs. Is there something that I am missing: myserver { …
0
votes
1 answer

file_get_contents to https server suddenly started failing

I have a number of sites running on caddy. I call between them on the same machine from php apps file_get_contents('https://myapi.example.com/my/api/call'); up until today it was all working lovely then I started getting SSL operation failed…
Toby Allen
  • 10,997
  • 11
  • 73
  • 124
0
votes
1 answer

I can't connect to a https site server by Caddy using curl

I am trying to contact a https site served by Caddy . I get an error when trying to get the content with CURL even with CURLOPT_SSL_VERIFYPEER => false There is a certain amount of worry about setting this to false anyway.
Toby Allen
  • 10,997
  • 11
  • 73
  • 124
-1
votes
1 answer

Using caddy to serve a tracking pixel (base64 encoded)

I am trying to setup a very simple beacon (pixel tracking) server. Currently all I want to do is have caddy respond with a 1px transparent gif to every request. The URLs will be logged and then we'll parse out the analytics data we're after. …
patrickdavey
  • 1,966
  • 2
  • 18
  • 25
1 2 3
22
23