Iโฆ might just get one today ๐
Anybody know how to use caddy?
Apr 08 22:39:20 raspberrypi.local caddy[799]: {"level":"warn","ts":1617935960.1684682,"logger":"http","msg":"user server is listening on same interface as automatic HTTP->HTTPS redirects; user-configured routes might override these redirects","server_name":"srv1","interface":"tcp/:80"}
Oh, interesting. So that means if I type <http://domain.name>
it'll redirect to <https://www.domain.name>
?
It works!
yup! ๐
Here's my caddyfile.
<http://domain.name>, <http://www.domain.name> {
redir <https://www.domain.name>{uri}
}
<https://www.domain.name> {
# Set this path to your site's directory.
root * /home/pi/my_website/
# Enable the static file server.
file_server
# Another common task is to set up a reverse proxy:
# reverse_proxy 127.0.0.1:2019
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
# Refer to the Caddy docs for more information:
# <https://caddyserver.com/docs/caddyfile>
}
Caddy will do an automatic redirect
you don't need to explicitly configure that in your Caddfyfile
would it be meta to make a channel called #on-topic ?
what could be more โon topicโ than #clojure?
:rolling_on_the_floor_laughing: