mirror of
https://github.com/casjaysdevdocker/ampache
synced 2026-05-19 02:47:55 -04:00
🗃️ Removed the .claude/settings.local.json 🗃️
Some checks failed
ampache / release-ampache (push) Has been cancelled
Some checks failed
ampache / release-ampache (push) Has been cancelled
Dockerfile .env.scripts .gitattributes .gitea/ .gitignore LICENSE.md README.md rootfs/root/docker/setup/04-users.sh rootfs/root/docker/setup/05-custom.sh rootfs/tmp/ rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/bin/pkmgr rootfs/usr/local/etc/docker/bin/ rootfs/usr/local/etc/docker/init.d/
This commit is contained in:
33
rootfs/tmp/etc/apache2/conf.d/ampache.conf
Normal file
33
rootfs/tmp/etc/apache2/conf.d/ampache.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
# casjaysdevdocker/ampache - Apache vhost for Ampache
|
||||
#
|
||||
# DocumentRoot is the upstream-blessed `public/` subfolder of the Ampache
|
||||
# install (see https://ampache.org/docs/installation).
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName casjaysdev-ampache
|
||||
DocumentRoot /usr/local/share/ampache/public
|
||||
|
||||
<Directory /usr/local/share/ampache/public>
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
||||
# Ampache's REST API needs the Authorization header passed through.
|
||||
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
||||
</Directory>
|
||||
|
||||
# Block .git and other dotfile dirs.
|
||||
<DirectoryMatch "^/.*/\.(git|svn|hg)/">
|
||||
Require all denied
|
||||
</DirectoryMatch>
|
||||
|
||||
# Hand .php files to php-fpm over its unix socket.
|
||||
<FilesMatch "\.php$">
|
||||
SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
ErrorLog /data/logs/apache2/ampache_error.log
|
||||
CustomLog /data/logs/apache2/ampache_access.log combined
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user