off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
solf 2021-04-09T02:39:08.181700Z

Iโ€ฆ might just get one today ๐Ÿ˜…

๐Ÿš€ 1
West 2021-04-09T03:21:49.182500Z

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

West 2021-04-10T02:19:03.186600Z

Oh, interesting. So that means if I type <http://domain.name> it'll redirect to <https://www.domain.name>?

West 2021-04-10T02:45:37.187Z

It works!

dharrigan 2021-04-10T07:01:41.187300Z

yup! ๐Ÿ™‚

West 2021-04-09T03:23:58.182600Z

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

dharrigan 2021-04-09T04:53:50.183100Z

Caddy will do an automatic redirect

dharrigan 2021-04-09T04:54:06.183300Z

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

sova-soars-the-sora 2021-04-09T19:59:48.185Z

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

2021-04-09T20:02:19.185100Z

what could be more โ€œon topicโ€ than #clojure?

sova-soars-the-sora 2021-04-09T20:04:23.185600Z

:rolling_on_the_floor_laughing: