# storebound desktop downloads on storebound.dev (included in the :443 vhost of /etc/apache2/sites-available/storebound.dev.conf
# as Include /etc/apache2/storebound-desktop.conf ; see docs/desktop-release.md).
# The page itself (site/desktop/index.html) comes with the site; the binaries and latest.json live outside the site's
# document root, because the site's publish rsync deletes everything that is not in the repository.
Alias /desktop/latest.json /var/www/storebound-desktop/latest.json
Alias /desktop/beta/latest.json /var/www/storebound-desktop/beta/latest.json
Alias /desktop/dl/ /var/www/storebound-desktop/dl/
Options -Indexes -FollowSymLinks
AllowOverride None
Require all granted
ForceType application/octet-stream
Header set Content-Disposition "attachment"
Header set Cache-Control "no-cache"
Header set Access-Control-Allow-Origin "*"
# a published file never changes (a new version gets a new folder)
Header set Cache-Control "public, max-age=31536000, immutable"
Header set X-Content-Type-Options "nosniff"