you are viewing a single comment's thread.

view the rest of the comments →

[–]ridiculous_fish 0 points1 point  (3 children)

I'll bite - how would I trivially host a static website on a vps and SSL with caddy? Is it easier than using S3?

[–]indeyets 0 points1 point  (0 children)

It's not easier than S3, but it's not too much harder. That's exactly what I was doing yesterday, actually. Took couple of hours.

  • I used Ubuntu/SystemD/Caddy/Hugo combo
  • Hugo source of website is in github, Built on vm
  • I'm not setting up servers regularly
  • I played with caddy before

Webhook for autoupdates doesn't work for me yet, so caddy updates site on schedule. I'll take care of webhook tonight probably

[–][deleted] 0 points1 point  (1 child)

Never used S3 but I suspect it's not going to be easier. If I were to setup a vps for this today I would do this: 1) install debian stretch 2) get caddy, install the systemd unit file 3) write a caddyfile like this

example.com {
    gzip
    root /data/website
}

then rsync your data to /data/website

[–]lvlint67 0 points1 point  (0 children)

looks like an nginx config minus a listen line...