feat: implement project management system with Nginx configuration templates and automated host file updates
This commit is contained in:
@@ -9,12 +9,14 @@ http {
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
server_names_hash_bucket_size 64;
|
||||
|
||||
server {
|
||||
listen {{LISTEN_ADDRESS}}:{{PORT}};
|
||||
server_name localhost;
|
||||
root "{{ROOT}}";
|
||||
index index.php index.html index.htm;
|
||||
autoindex on;
|
||||
|
||||
location / {
|
||||
# Try global root first, fallback to @project_fallback if not found
|
||||
@@ -35,8 +37,10 @@ http {
|
||||
}
|
||||
return 404;
|
||||
}
|
||||
|
||||
# Subdirectory access for projects (legacy support)
|
||||
{{PROJECT_LOCATIONS}}
|
||||
|
||||
{{PROJECTS}}
|
||||
|
||||
location /phpmyadmin {
|
||||
alias "{{PHPMYADMIN_DIR}}";
|
||||
@@ -58,4 +62,6 @@ http {
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
}
|
||||
|
||||
{{PROJECTS}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user