• 1 Post
  • 95 Comments
Joined 2 years ago
cake
Cake day: April 10th, 2024

help-circle




  • Oh certificates are so much fun and you have so many options. From fairly easy to mindboggling complex.

    Your current solution is OK if you keep in mind security implications of distributing certs using scripts.

    It is not entirely clear where you do your tls-termination but it sounds like that is the Caddy reverse proxy so that is where your certs should be.

    Placing them in a location like /etc/ssl/example_com/ as fullchain.pem and privkey.pem is probably easiest. Make sure access rights are appropriate. Then point Caddy at them and it should work. I have no experience with Caddy itself though. If Caddy runs in Docker be sure to map the certificates into the container.

    Mind that in this scenario the certificates are only on the Caddy server, connections from the reverse proxy to the services is unencrypted over http. You can’t easily use the LE certificates on the services itself without some ugly split-horizon DNS shenanigans.

    Alternatively you can set up a PKI with certificates for your services behind the reverse-proxy for internal encryption and do public tls termination in the proxy with Let’s Encrypt.






  • Well, this seems in line with their whole Material 3 crapfest. I have a small personal SPA based on Angular Material 2. I’ve chosen some nice colours and use them troughout the site for a recognizable style.

    With Material 3 you can pick a colour, or if you ask very nicely, maybe 5. And then the framework will generate the colours for the components. These generated colours are almost, but not quite, entirely unlike the colours you picked. Making your site look like an fugly mess.

    Their grand “vision” is that they should match the content or whatever wallpaper the user has. So fuck you and your colours, we know better. It was quite a frustrating experiment and for now I’m back on Material 2 looking to switch to something better.






  • Hmm, I really liked most of the GTA series.

    1. So much fun driving around and shooting stuff up. Great humor as well.
    2. Even better with nice graphics and lighting effects.
    3. Just wow, GTA but you are actually in a 3D city.
    • Vice City had a great vibe and colorful world.
    • S.A. huge world (felt like it at the time) and a great radio soundtrack. So much to see and do.
    1. Depressing, slow and mostly a chore… Didn’t like this one.
    2. Alive, funny and beatiful open world. Really great if you skip multiplayer and the later milking of the franchise.
    3. We’ll see…

    The Lazlo character was also great on the radio show… He was kind of the voice of reason until they completely ruined him with an apprarance as sleazebag on GTA V.





  • Could be that I misread but I think you’re misunderstanding types in Typescript.

    You have an array of 1 or 2 values of unbounded size. You put two values in but could have put 1000 in, your type doesn’t say anything about that. You can only put ones or twos in there though.

    I think your first line is equivalent to saying:

    type MyStringType = string[];
    

    I haven’t checked though so I might be wrong…