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>
|
||||
10
rootfs/tmp/etc/apache2/conf.d/mpm.conf
Normal file
10
rootfs/tmp/etc/apache2/conf.d/mpm.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
# casjaysdevdocker/ampache - MPM event tuning
|
||||
<IfModule mpm_event_module>
|
||||
StartServers 2
|
||||
MinSpareThreads 25
|
||||
MaxSpareThreads 75
|
||||
ThreadLimit 64
|
||||
ThreadsPerChild 25
|
||||
MaxRequestWorkers 150
|
||||
MaxConnectionsPerChild 0
|
||||
</IfModule>
|
||||
83
rootfs/tmp/etc/apache2/httpd.conf
Normal file
83
rootfs/tmp/etc/apache2/httpd.conf
Normal file
@@ -0,0 +1,83 @@
|
||||
# casjaysdevdocker/ampache - Apache httpd 2.4 (Alpine) - main config
|
||||
#
|
||||
# Wipe-and-replace via 05-custom.sh; user edits live at /config/apache2/.
|
||||
|
||||
ServerRoot /var/www
|
||||
PidFile /run/apache2/httpd.pid
|
||||
Mutex file:/run/apache2 default
|
||||
Timeout 60
|
||||
KeepAlive On
|
||||
MaxKeepAliveRequests 100
|
||||
KeepAliveTimeout 5
|
||||
|
||||
User apache
|
||||
Group apache
|
||||
|
||||
ServerAdmin docker-admin@casjaysdev.pro
|
||||
ServerName casjaysdev-ampache:80
|
||||
ServerSignature Off
|
||||
ServerTokens Prod
|
||||
UseCanonicalName Off
|
||||
HostnameLookups Off
|
||||
|
||||
Listen 80
|
||||
|
||||
# Modules - load only what we need.
|
||||
LoadModule mpm_event_module modules/mod_mpm_event.so
|
||||
LoadModule unixd_module modules/mod_unixd.so
|
||||
LoadModule authn_core_module modules/mod_authn_core.so
|
||||
LoadModule authn_file_module modules/mod_authn_file.so
|
||||
LoadModule authz_core_module modules/mod_authz_core.so
|
||||
LoadModule authz_host_module modules/mod_authz_host.so
|
||||
LoadModule authz_user_module modules/mod_authz_user.so
|
||||
LoadModule auth_basic_module modules/mod_auth_basic.so
|
||||
LoadModule access_compat_module modules/mod_access_compat.so
|
||||
LoadModule reqtimeout_module modules/mod_reqtimeout.so
|
||||
LoadModule filter_module modules/mod_filter.so
|
||||
LoadModule mime_module modules/mod_mime.so
|
||||
LoadModule mime_magic_module modules/mod_mime_magic.so
|
||||
LoadModule log_config_module modules/mod_log_config.so
|
||||
LoadModule env_module modules/mod_env.so
|
||||
LoadModule headers_module modules/mod_headers.so
|
||||
LoadModule expires_module modules/mod_expires.so
|
||||
LoadModule deflate_module modules/mod_deflate.so
|
||||
LoadModule brotli_module modules/mod_brotli.so
|
||||
LoadModule setenvif_module modules/mod_setenvif.so
|
||||
LoadModule version_module modules/mod_version.so
|
||||
LoadModule status_module modules/mod_status.so
|
||||
LoadModule autoindex_module modules/mod_autoindex.so
|
||||
LoadModule dir_module modules/mod_dir.so
|
||||
LoadModule alias_module modules/mod_alias.so
|
||||
LoadModule rewrite_module modules/mod_rewrite.so
|
||||
LoadModule negotiation_module modules/mod_negotiation.so
|
||||
LoadModule proxy_module modules/mod_proxy.so
|
||||
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
|
||||
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
|
||||
LoadModule ssl_module modules/mod_ssl.so
|
||||
LoadModule http2_module modules/mod_http2.so
|
||||
|
||||
TypesConfig /etc/apache2/mime.types
|
||||
MimeMagicFile /etc/apache2/magic
|
||||
DirectoryIndex index.php index.html
|
||||
|
||||
# Default deny on filesystem root; vhost re-permits its DocumentRoot.
|
||||
<Directory />
|
||||
AllowOverride None
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
# Hide dotfiles.
|
||||
<FilesMatch "^\.">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
# Logs land under /data so they survive container recreation.
|
||||
ErrorLog /data/logs/apache2/error.log
|
||||
LogLevel warn
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
||||
CustomLog /data/logs/apache2/access.log combined
|
||||
|
||||
# Drop in our service vhost(s) and any user-supplied ones.
|
||||
IncludeOptional /etc/apache2/conf.d/*.conf
|
||||
IncludeOptional /config/apache2/vhosts.d/*.conf
|
||||
Reference in New Issue
Block a user