caddy | Caddy 一键反代谷歌安装脚本 -
kandi X-RAY | caddy Summary
kandi X-RAY | caddy Summary
caddy
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of caddy
caddy Key Features
caddy Examples and Code Snippets
Community Discussions
Trending Discussions on caddy
QUESTION
Am trying to get ssl working on my ec2 instance, but sudo yum caddy install
tells me i need to have Requires: libc.so.6(GLIBC_2.34)(64bit)
which by the way i cant find a way to install it on linux ec2 server
ANSWER
Answered 2022-Mar-25 at 19:39I had the same issue, but was able to successfully install it by building it from source: https://caddyserver.com/docs/build#build-from-source
Make sure you have Golang installed first, that's really easy
QUESTION
I have a start.bat
similar to the following:
ANSWER
Answered 2022-Mar-18 at 22:23A PowerShell solution - which is acceptable as both implied by this question's tagging and as explicitly stated by icanfathom (the OP) in a comment ("No, PS would be fine") - using the Start-Process
and Stop-Process
cmdlets:
QUESTION
I set up the symfony-docker configuration in a sulu application. Everything works fine in development thanks to the bind mount of the app root directory. But in production, the media files uploaded by the user are not persisted when containers are restarted.
I tried adding a volume like that, in docker-compose.yml
(in the php
service or in the caddy
service):
ANSWER
Answered 2022-Mar-17 at 17:45Thumbnails are not generated on upload they are generated the first time you request them. This saves a lot of space as not every image is needed in every size.
An example docker setup for development only can be found here:
https://github.com/dunglas/symfony-docker/blob/main/docker-compose.yml
In a normal linux setup you need to make sure that your webserver user / php fpm user is allowed to access the public/uploads
directory this is done via:
QUESTION
I am contacting you because I can't get mercure to work in production.
The binary prebuild runs fine, but when I try to connect to the hub, I get a 404 no found.
Here is the command I run :
...ANSWER
Answered 2022-Feb-20 at 11:26That is my apache settings. Maybe help to you.
open nano /etc/apache2/sites-available/yourdomain.com-le-ssl.conf
QUESTION
I am having an issue sending updates to the Caddy-based Mercure Hub with both the Symfony Mercure\HubInterface and the "pure" PHP example.
When attempting to publish an update (following the official Symfony/Mercure tutorial), I get the error "Failed to send an update", with the TransportException:
"SSL certificate problem: unable to get local issuer certificate for "https://localhost/.well-known/mercure".
When trying to publish with the "pure" PHP example: https://github.com/dunglas/mercure/blob/main/examples/publish/php.php
I get the error:
"Warning: file_get_contents(https://localhost/.well-known/mercure): Failed to open stream: operation failed in /"path"/test.php on line 13"
Everything works when I run the CURL example (https://mercure.rocks/docs/getting-started) in Terminal:
...ANSWER
Answered 2022-Feb-14 at 15:18try add in framework.yaml
QUESTION
updated:
To reproduce the issue is very simple with a few steps:
- Install it on your Ubuntu server by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"
During the auto installation process, you will be prompted to enter the domain for your Posthog site, so enter one and wait for the process to finish.
Visit the domain you entered and it is accessbile.
Now reboot your VPS and visit the domain again it is down forever. Not accessbile even if you use your vps ip address.
I've tried this auto-installation and reboot thing three times on the same vps and ended up with the same result. I've also tried it on another vps by a new hosting provider, yet still the same issue. Fresh installation and the site will be down right after your reboot your vps!
The following is the error log I got from the Caddy container, which is generated after the vps reboot:
{"level":"error","ts":1642534398.9394724,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:8000: connect: connection refused","request":{"remote_addr":"67.198.228.123:35424","proto":"HTTP/2.0","method":"GET","host":"","uri":"/preflight","headers":{"Sec-Ch-Ua":["" Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96""],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"],"Sec-Fetch-Site":["cross-site"],"Accept-Language":["en-US,en;q=0.9"],"Accept-Encoding":["gzip, deflate, br"],"Cookie":["phtoolbar=yes; csrftoken=gsVfpdF56rbYgQQdwywH45zi83i386oe5KZZef3mIE00bumaQCG3i4OM35bdJIxQ; ph_sTMFPsFhdP1Ssg_posthog=%7B%22distinct_id%22%3A%22FpLgrw74q9qcclLSJ1bOrzsiPJmZtHdKswxemTFy9LG%22%7D"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua-Mobile":["?0"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Platform":[""macOS""],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":""}},"duration":0.008754516,"status":502,"err_id":"gicbjv2m4","err_trace":"reverseproxy.statusError (reverseproxy.go:886)"} {"level":"error","ts":1642534401.5881941,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:8000: connect: connection refused","request":{"remote_addr":"67.198.228.123:35424","proto":"HTTP/2.0","method":"GET","host":"","uri":"/preflight","headers":{"Cache-Control":["max-age=0"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":[""macOS""],"Sec-Fetch-User":["?1"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"],"Sec-Ch-Ua":["" Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96""],"Sec-Fetch-Mode":["navigate"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-Site":["cross-site"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-US,en;q=0.9"],"Cookie":["phtoolbar=yes; csrftoken=gsVfpdF56rbYgQQdwywH45zi83i386oe5KZZef3mIE00bumaQCG3i4OM35bdJIxQ; ph_sTMFPsFhdP1Ssg_posthog=%7B%22distinct_id%22%3A%22FpLgrw74q9qcclLSJ1bOrzsiPJmZtHdKswxemTFy9LG%22%7D"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":""}},"duration":0.001907749,"status":502,"err_id":"27e15xwsj","err_trace":"reverseproxy.statusError (reverseproxy.go:886)"}
By the way, this is their documentaion page FYI: https://posthog.com/docs/self-host/deploy/hobby
Original question:
I've installed Posthog with their so-called hobby installation script on my vps and at first it was working fine. But right after I rebooted ubuntu and visited my self-hosted posthog site again, it would not load and just showed a blank page. It seems that something went wrong after I rebooted my vps. I've checked all the services required by Posthog with the command docker ps, and everything is up and running(check the screenshot attached).
I've been trying to figure it out for 4 days yet with no luck. I am new to docker and kubernetes so I do not know what causes the problem and what I should do. Please shed some light on this and help me :(
...ANSWER
Answered 2022-Feb-07 at 09:08First things first, this is a docker-compose stack, not Kubernetes.
If you take a look at the script you execute, you can see that it's downlowading docker compose and then uses it to start up your stack.
As such, executing docker-compose stop && docker-compose start
after your rebooted should fix this.
The "problem" here is the docker compose yaml that is used for the hobby project, which includes the following:
QUESTION
I need to serve two different sites at the same time with Caddy:
On the root path, the site is handled by a Symfony application.
But on /blog
, there is Wordpress application.
And while /
is located on /var/www/app
, /blog
is actually served from a different root: /var/www/blog
.
I've tried with this, which almost works:
...ANSWER
Answered 2022-Feb-06 at 13:44The proper configuration would be achieved like this:
QUESTION
I'd like to setup a Caddy server where the subdomain is static but the domain part is "wildcard", such as "api.*"
From my understanding of Caddy, the wildcard is possible for one part of the full domain (*.domain.com
matches bar.domain.com
but not foo.bar.domain.com
).
Moreover, this configuration would automatically create a SSL certificates (which Caddy does in general, but I'm not sure here) for any new DNS entry that points to my server with a domain starting with "api.
*".
The "*" here would be the domain directly, not any subdomain (it would work for api.domain.com
, but not for api.foo.domain.com
).
Is this something possible using a simple Caddy command (such as api.* { ... }
, which I tried without luck), or does it need a more complex implementation?
Thank you for your help!
...ANSWER
Answered 2022-Jan-28 at 13:06I found a working solution with the help of the Caddy Community.
Here's the code :
QUESTION
What I'm trying to do
Host a Taskwarrior Server on an AWS EC2 instance, and connect to it via a subdomain (e.g. task.mydomain.dev).
Taskwarrior server operates on port 53589.
Tech involved
- AWS EC2: the server (Ubuntu)
- Caddy Server: for creating a reverse proxy for each app on the EC2 instance
- Docker (docker-compose): for launching apps, including the Caddy Server and the Taskwarrior server
- Cloudflare: DNS hosting and SSL certificates
How I've tried to do this
I have:
- allowed incoming connections for ports 22, 80, 443 and 53589 in the instance's security policy
- given the EC2 instance an elastic IP
- setup the DNS records (task.mydomain.dev is CNAME'd to mydomain.dev, mydomain.dev has an A record pointing to the elastic IP)
- used Caddy server to setup a reverse proxy on port 53589 for task.mydomain.dev
- setup the Taskwarrior server as per instructions (i.e. certificates created; user and organisation created; taskrc file updated with cert, auth and server info; etc)
Config files
/opt/task/docker-compose.yml
...ANSWER
Answered 2021-Dec-28 at 13:35If you are attempting to proxy HTTPS traffic on Cloudflare on a port not on the standard list, you will need to follow one of these options:
- Set it up as a Cloudflare HTTPS Spectrum app on the required port
53589
- Set up the record in the Cloudflare DNS tab as Grey cloud (in other words, it will only perform the DNS resolution - meaning you will need to manage the certificates on your side)
- Change your service so that it listens on one of the standard HTTPS ports listed in the documentation in point (1)
QUESTION
I have a terraform script, which tries to refer to the attribute in the same resource. I need to pass "azurerm_container_group.aci_caddy.fqdn" to the container instance inside the container group.
...ANSWER
Answered 2021-Dec-27 at 22:33You cant reference resource within itself: azurerm_container_group.aci_caddy.fqdn
because it hasn't yet been created. You have to create new variable or local value for your SITE_ADDRESS.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install caddy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page