mirror of
https://github.com/trevor1969/teatracker.git
synced 2026-08-09 02:32:02 +00:00
- Fix updateStats() um renderDetailedStats() korrekt aufzurufen - Fix Stats-Period-Filter Event-Listener hinzugefügt - Verbesserte LocalFileStorage-Klasse mit besserer Fehlerbehandlung - .htaccess-Datei für Apache-Server hinzugefügt - SERVER_SETUP.md mit Anleitungen für Server-Konfiguration - data/-Verzeichnis mit .gitkeep hinzugefügt - app-Variable als window.app global verfügbar gemacht Co-authored-by: trevor1969 <trevor1969@users.noreply.github.com>
39 lines
1018 B
ApacheConf
39 lines
1018 B
ApacheConf
# TeeTracker .htaccess Configuration
|
|
# Enable PUT and DELETE methods for the data directory
|
|
# Required for file-based storage to work on Apache servers
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
|
|
# Allow PUT and DELETE for data directory
|
|
RewriteCond %{REQUEST_METHOD} ^(PUT|DELETE)$
|
|
RewriteCond %{REQUEST_URI} ^/data/ [NC]
|
|
RewriteRule ^ - [L]
|
|
</IfModule>
|
|
|
|
# Enable all HTTP methods for the data directory
|
|
<Limit GET POST PUT DELETE OPTIONS>
|
|
Require all granted
|
|
</Limit>
|
|
|
|
<LimitExcept GET POST PUT DELETE OPTIONS>
|
|
Require all denied
|
|
</LimitExcept>
|
|
|
|
# Set proper MIME types for JSON files
|
|
<IfModule mod_mime.c>
|
|
AddType application/json .json
|
|
</IfModule>
|
|
|
|
# Disable caching for data files
|
|
<FilesMatch "\.(json|txt)$">
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive Off
|
|
</IfModule>
|
|
<IfModule mod_headers.c>
|
|
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires 0
|
|
</IfModule>
|
|
</FilesMatch>
|