feat(server): serve the pacman repository over HTTPS
Caddy now owns the certificate of repo.fws-linux.org: it obtains and renews it, redirects http:// to https:// and serves HTTP/3. The plain http://:30065 block stays for tests until the DNS record exists, and the pacman block, install output and both READMEs point at the HTTPS URL.
This commit is contained in:
1 parent
30cb9c9fc2
commit
337e9b305a
7 files changed
+176
-58
No files matched your search
+7
-2
@@ -180,12 +180,17 @@ fi
|
||||
|
||||
echo
|
||||
echo " dépôt : $REPO_ROOT/$REPO_ARCH ([$REPO_NAME], arch $REPO_ARCH)"
|
||||
echo " interface : http://$BIND/admin/ (à exposer via Caddy, voir Caddyfile.snippet)"
|
||||
echo " interface : https://${REPO_DOMAIN:-repo.fws-linux.org}/admin/ (Caddy)"
|
||||
echo " en clair, pour tester : http://$BIND/admin/"
|
||||
echo " jeton : $(cat "$TOKEN_FILE")"
|
||||
[[ $NEW_TOKEN -eq 1 ]] && echo " (nouveau jeton, conservez-le)"
|
||||
echo
|
||||
echo " Caddy : ajoutez le bloc de Caddyfile.snippet dans /etc/caddy/Caddyfile puis"
|
||||
echo " Caddy : sudo cp $APP_DIR/Caddyfile /etc/caddy/Caddyfile"
|
||||
echo " (ou le bloc de Caddyfile.snippet dans un Caddyfile existant), puis"
|
||||
echo " sudo caddy validate --config /etc/caddy/Caddyfile && sudo systemctl reload caddy"
|
||||
if [[ "$REPO_ROOT" != /var/www/fws ]]; then
|
||||
echo " REPO_WEBROOT=$REPO_ROOT (racine servie par Caddy)"
|
||||
fi
|
||||
echo
|
||||
echo " publication : ./push.sh mon-paquet-1.0-1-x86_64.pkg.tar.zst"
|
||||
echo " rétention : $KEEP versions par paquet ($PRUNE_NAME.timer, purge horaire)"
|
||||
|
||||
Reference in new issue
Block a user