feat: complete rewrite of server component

This commit is contained in:
mxmehl committed 2026-10-22 12:22:14 +02:00
1 parent a1c55f4574
commit e8408adfc7
14 files changed
+673 -324

No files matched your search

+12 -12
View File
@@ -1,15 +1,15 @@
# Only allow web access to update.php and index.html
<Files *>
Order Deny,Allow
Deny from all
</Files>
# SPDX-FileCopyrightText: 2016 Max Mehl <mail@mehl.mx>
# SPDX-License-Identifier: AGPL-3.0-or-later
<FilesMatch ^$>
Order Allow,Deny
Allow from all
</FilesMatch>
# Run update.cgi as CGI and hand the Authorization header to it
Options +ExecCGI
AddHandler cgi-script .cgi
CGIPassAuth On
<FilesMatch "^(update\.php|index\.html)$">
Order Allow,Deny
Allow from all
# Optional: config location if it is not ~/etc/snap-dyndns/config.toml
# SetEnv SNAP_DYNDNS_CONFIG /home/USER/etc/snap-dyndns/config.toml
# Only update.cgi may be requested, nothing else of this repository
<FilesMatch "^(?!update\.cgi$)">
Require all denied
</FilesMatch>