feat: Kür-Hub mit Einladungen, Uploads und API
- PHP-App unter hub/ für rinkplanner-hub.programmschmiede.de - MariaDB-Schema, Argon2id, Sessions, CSRF und Ratenbegrenzung - Einladungscodes, Admin-Bereich und Kür-Pakete mit Audiodatei - JSON-API v1 mit Bearer-Tokens für die Godot-App - Deployment und Erstinstallation über tools/deploy_hub.sh - Doku und Credentials-Vorlage ergänzt
This commit is contained in:
parent
e79b477ee0
commit
055a2919c3
38 changed files with 5111 additions and 0 deletions
46
hub/web/.htaccess
Normal file
46
hub/web/.htaccess
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Rinkplanner-Hub – Apache-Konfiguration für die Subdomain.
|
||||
# Die eigentliche Anwendung liegt in app/, die Uploads in storage/.
|
||||
# Beides ist über HTTP gesperrt; ausgeliefert wird nur web/ (hier: das
|
||||
# DocumentRoot der Subdomain).
|
||||
|
||||
Options -Indexes
|
||||
DirectoryIndex index.php index.html
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# Immer HTTPS. Der Hoster kann TLS terminieren, daher auch der Proxy-Header.
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
|
||||
# Interne Verzeichnisse und versteckte Dateien nie ausliefern.
|
||||
RewriteRule ^(app|storage|sql)(/|$) - [F,L]
|
||||
RewriteCond %{REQUEST_URI} !^/\.well-known/
|
||||
RewriteRule (^|/)\. - [F,L]
|
||||
|
||||
# Nicht vorhandene Pfade an den Front Controller.
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^ index.php [QSA,L]
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header always set X-Content-Type-Options "nosniff"
|
||||
Header always set X-Frame-Options "DENY"
|
||||
Header always set Referrer-Policy "same-origin"
|
||||
<FilesMatch "\.(css|svg|png|jpg|jpeg|webp|ico)$">
|
||||
Header set Cache-Control "public, max-age=604800"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
<FilesMatch "^(\.env|\.git.*|composer\..*)$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
# PHP-FPM: Fehler nicht an Besucher ausgeben (die App setzt das zusätzlich).
|
||||
<IfModule mod_php.c>
|
||||
php_flag display_errors off
|
||||
php_flag log_errors on
|
||||
</IfModule>
|
||||
Loading…
Add table
Add a link
Reference in a new issue