nixberg / caddy Goto Github PK
View Code? Open in Web Editor NEWSnap of the Caddy web server
Snap of the Caddy web server
details here: https://caddy.community/t/snap-caddy-cant-find-caddyfile
caddy version
v2.4.5 h1:P1mRs6V2cMcagSPn+NWpD+OEYUYLIf6ecOa48cFGeUg=
installed with
snap install caddy --edge
on Raspberry Pi
Linux pi 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
i created a file /tmp/Caddyfile
but Caddy insists it does not exists and refuses to start 😕
root@pi:/tmp# ls -lh /tmp/Caddyfile*
-rw-r--r-- 1 pi pi 122 Sep 29 12:00 /tmp/Caddyfile
root@pi:/tmp# cat /tmp/Caddyfile
localhost:81 {
respond "Hello, world!"
}
localhost:82 {
respond "Goodbye, world!"
}
root@pi:/tmp# caddy adapt
adapt: input file required when there is no Caddyfile in current directory (use --config flag)
root@pi:/tmp# caddy adapt --config Caddyfile --validate
adapt: reading input file: open Caddyfile: no such file or directory
root@pi:/tmp# caddy adapt --config /tmp/Caddyfile
adapt: reading input file: open /tmp/Caddyfile: no such file or directory
root@pi:/tmp# caddy start
start: opening listener for success confirmation: listen tcp 127.0.0.1:0: listen: operation not permitted
Thanks for making the caddy snap. The version in the store is very outdated. Do you plan to update it? If not, would you mind handing it over to someone who will?
Hi there,
for holding the "caddy" name on Snapcraft, it would be nice if you could include all maintained plugins to your distribution so that most use cases are covered.
As an example, @Jamesits includes the following:
curl https://getcaddy.com | bash -s personal dns,docker,dyndns,hook.service,http.authz,http.awses,http.awslambda,http.cache,http.cgi,http.cors,http.datadog,http.expires,http.filemanager,http.filter,http.forwardproxy,http.geoip,http.git,http.gopkg,http.grpc,http.hugo,http.ipfilter,http.jekyll,http.jwt,http.locale,http.login,http.mailout,http.minify,http.nobots,http.prometheus,http.proxyprotocol,http.ratelimit,http.realip,http.reauth,http.restic,http.upload,http.webdav,net,tls.dns.auroradns,tls.dns.azure,tls.dns.cloudflare,tls.dns.cloudxns,tls.dns.digitalocean,tls.dns.dnsimple,tls.dns.dnsmadeeasy,tls.dns.dnspod,tls.dns.dyn,tls.dns.exoscale,tls.dns.gandi,tls.dns.gandiv5,tls.dns.godaddy,tls.dns.googlecloud,tls.dns.lightsail,tls.dns.linode,tls.dns.namecheap,tls.dns.ns1,tls.dns.otc,tls.dns.ovh,tls.dns.powerdns,tls.dns.rackspace,tls.dns.rfc2136,tls.dns.route53,tls.dns.vultr
https://gist.github.com/Jamesits/2a1e2677ddba31fae62d022ef8aa54dc
Running Ubuntu 18.04.6 LTS I've installed:
sudo snap install --edge caddy
When I access http://localhost:2019 I get returned.
{
"error": "host not allowed: 192.168.1.1"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.