Fork me on GitHub
#off-topic
<
2021-04-09
>
West03:04:49

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"}

West03:04:58

Here's my caddyfile.

,  {
    redir {uri}
}

 {
        # 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:
        # 
}

dharrigan04:04:50

Caddy will do an automatic redirect

dharrigan04:04:06

you don't need to explicitly configure that in your Caddfyfile

West02:04:03

Oh, interesting. So that means if I type it'll redirect to ?

West02:04:37

It works!

dharrigan07:04:41

yup! 🙂

sova-soars-the-sora19:04:48

would it be meta to make a channel called #on-topic ?

Jeff Evans20:04:19

what could be more “on topic” than #clojure?

sova-soars-the-sora20:04:23

:rolling_on_the_floor_laughing: