Milan is a user on social.tchncs.de. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Milan @milan

if you run an server and wanna get rid of the port in the upload url and such, i wrote this little blogpost ... no warranty but maybe it is useful... :)

busy.org/@milanihl/howto-make-

@milan Ich empfehle $host statt $server_name im https redirect, dann fängt das alle Hostnames ab, auf denen gelauscht wird. Dann kann man sogar einen generischen vhost auf port 80 lauschen lassen.

@milan
Ich mache meistens sowas:
server {
listen 80;
server_name _;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /var/www/acme;
}

location / {
return 301 https://$host$request_uri;
}
}

Lässt sich noch mit nem try_files für ACME erweitern, dann kann man Challenges auch an andere Hosts weiterleiten, dann kriegen die auch Certs.

@pstn nice, danke für den tipp!