Skip to content

Instantly share code, notes, and snippets.

View bertmelis's full-sized avatar
🇧🇪
typing...

Bert Melis bertmelis

🇧🇪
typing...
View GitHub Profile
@bertmelis
bertmelis / Immich behind nginx proxy with Letsencrypt certificates.md
Last active February 26, 2026 18:27
Immich behind nginx proxy with Letsencrypt certificates
  • !! underscore _ in filename == slash /
  • I'm using podman instead of Docker. Systemd files were generated by podman (not quadlet).
  • certbot image has to be pulled manually
  • before first start, a certificate has to be requested. Nginx won't start if it's not there. You can request one using certbot in standalone mode: podman run -it --rm -p 80:80 -v ~/nginx/data/letsencrypt:/etc/letsencrypt:z -v ~/nginx/log:/var/log:z certbot/certbot certonly --standalone --staging --dry-run --key-type ecdsa --rsa-key-size 4096 -d immich.domain.tld
  • ports forwarded and opened: 80/TCP, 443/UDP and 443/TCP

directory structure has to look like this. directories and logfiles may have to be created manually. check startup errors.

$ home - nginx
@bertmelis
bertmelis / OpenWeatherMap.cpp
Created January 19, 2023 13:47
Get Open Weather Map data into Arduino, requires ArduinoJson and an OWM API key.
#include "openweathermap.h"
bool fc_ready = false;
size_t d1 = 0;
size_t d2 = 0;
size_t d3 = 0;
float fc_temp_d1 = 0;
float fc_temp_d2 = 0;
float fc_temp_d3 = 0;
char fc_icon_cur[4] = "01d";