# SPDX-FileCopyrightText: 2016 Max Mehl <mail@mehl.mx>
# SPDX-License-Identifier: AGPL-3.0-or-later

# Run update.cgi as CGI and hand the Authorization header to it
Options +ExecCGI
AddHandler cgi-script .cgi
CGIPassAuth On

# 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>
