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

dominicm 2021-04-09T10:54:13.183700Z

Couple thoughts here, I've had good experience with AWS support. I've found what seems like bugs (500 exceptions), and support have been able to give technical answers about areas that aren't supported that we're hitting. We've also had performance issues with RDS dbs in prod with AWS, and support were able to diagnose the issue down to the host node the DB was on.

dominicm 2021-04-09T10:55:34.183900Z

EC2 instances definitely fail, go offline, etc. The AWS argument is that this is perfectly normal in any cloud environment, and you should be using load balancers etc. to cope with that. I'm surprised the rate is as high as 1/200/weekly though. I've not run at that kind of scale before though. I did have a non-HA Datomic DB go down on me once though as a result of an EC2 lock up :)

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:

2021-04-09T20:59:20.185800Z

They look great, just ordered one!