mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
feat: extract MediaController, wire into Dispatcher, delete media.php
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# Nginx configuration for Post-ERG thesis website (Production)
|
||||
# Updated for new directory structure
|
||||
# Place this in /etc/nginx/sites-available/posterg
|
||||
# Then symlink: ln -s /etc/nginx/sites-available/posterg /etc/nginx/sites-enabled/
|
||||
|
||||
@@ -15,24 +14,22 @@ limit_req_zone $binary_remote_addr zone=admin:10m rate=60r/m;
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
|
||||
server_name posterg.erg.be www.posterg.erg.be;
|
||||
|
||||
# Document root points to /public (only web-accessible files)
|
||||
# Project structure: /var/www/posterg/
|
||||
# /config - Configuration (outside webroot)
|
||||
# /docs - Documentation (outside webroot)
|
||||
# /nginx - Server configs (outside webroot)
|
||||
# Deployed structure: /var/www/posterg/
|
||||
# /public - Web root ← THIS DIRECTORY
|
||||
# /admin - Admin interface
|
||||
# /assets - CSS, fonts, icons
|
||||
# /scripts - Deployment scripts (outside webroot)
|
||||
# /src - PHP source classes (outside webroot)
|
||||
# /storage - SQLite databases (outside webroot)
|
||||
# /templates - PHP templates (outside webroot)
|
||||
# /tests - Test suites (outside webroot)
|
||||
# /bootstrap.php - Application entry point
|
||||
# /router.php - Dev server URL rewriter
|
||||
root /var/www/posterg/public;
|
||||
|
||||
|
||||
# Add index.php to the list
|
||||
index index.php index.html index.htm;
|
||||
|
||||
@@ -135,10 +132,10 @@ server {
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
|
||||
|
||||
|
||||
# Security parameters
|
||||
fastcgi_param PHP_VALUE "upload_max_filesize=50M \n post_max_size=100M";
|
||||
|
||||
|
||||
# Timeouts
|
||||
fastcgi_read_timeout 120;
|
||||
fastcgi_send_timeout 120;
|
||||
@@ -146,7 +143,7 @@ server {
|
||||
|
||||
# Additional security headers for admin
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
|
||||
# Try to serve file, otherwise 404
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
@@ -173,7 +170,7 @@ server {
|
||||
|
||||
# Security parameters
|
||||
fastcgi_param PHP_VALUE "upload_max_filesize=50M \n post_max_size=100M";
|
||||
|
||||
|
||||
# Timeouts
|
||||
fastcgi_read_timeout 120;
|
||||
fastcgi_send_timeout 120;
|
||||
|
||||
Reference in New Issue
Block a user