File tree Expand file tree Collapse file tree 8 files changed +38
-14
lines changed Expand file tree Collapse file tree 8 files changed +38
-14
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ PHP_MEMORY_LIMIT=256M
39
39
XDEBUG_ENABLED = 1
40
40
41
41
# Application configuration
42
- APP_FRAMEWORK = default
42
+ APP_WORKSPACE = default
43
43
APP_PUBLIC_DIR = app/public
44
44
45
- # Framework installation directories
45
+ # Workspace installation directories
46
46
SYMFONY_DIR = symfony-app
47
47
LARAVEL_DIR = laravel-app
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ PHP_MEMORY_LIMIT=256M
39
39
XDEBUG_ENABLED = 1
40
40
41
41
# Application configuration
42
- APP_FRAMEWORK = default
42
+ APP_WORKSPACE = default
43
43
APP_PUBLIC_DIR = app/public
44
44
45
- # Framework installation directories
45
+ # Workspace installation directories
46
46
SYMFONY_DIR = symfony-app
47
47
LARAVEL_DIR = laravel-app
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ XDEBUG_ENABLED=0
37
37
PHPMYADMIN_PROFILE = none
38
38
39
39
# Application configuration
40
- APP_FRAMEWORK = default
40
+ APP_WORKSPACE = default
41
41
APP_PUBLIC_DIR = app/public
42
42
43
- # Framework installation directories
43
+ # Workspace installation directories
44
44
SYMFONY_DIR = symfony-app
45
45
LARAVEL_DIR = laravel-app
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ services:
33
33
web :
34
34
image : nginx:alpine
35
35
volumes :
36
- - " ./etc/nginx/framework :/etc/nginx/conf.d/framework "
36
+ - " ./etc/nginx/workspace :/etc/nginx/conf.d/workspace "
37
37
- " ./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
38
38
- " ./etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
39
39
- " ./etc/ssl:/etc/ssl"
@@ -43,10 +43,10 @@ services:
43
43
- " 3000:443"
44
44
environment :
45
45
- NGINX_HOST=${NGINX_HOST}
46
- - APP_FRAMEWORK =${APP_FRAMEWORK :-default}
46
+ - APP_WORKSPACE =${APP_WORKSPACE :-default}
47
47
- APP_PUBLIC_DIR=${APP_PUBLIC_DIR:-public}
48
- - NGINX_FRAMEWORK_DIR =${NGINX_FRAMEWORK_DIR:-framework }
49
- command : /bin/sh -c "envsubst '$$NGINX_HOST $$APP_FRAMEWORK $$APP_PUBLIC_DIR $$NGINX_FRAMEWORK_DIR ' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
48
+ - NGINX_WORKSPACE_DIR =${NGINX_WORKSPACE_DIR:-workspace }
49
+ command : /bin/sh -c "envsubst '$$NGINX_HOST $$APP_WORKSPACE $$APP_PUBLIC_DIR $$NGINX_WORKSPACE_DIR ' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
50
50
restart : always
51
51
depends_on :
52
52
- php
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ server {
14
14
root /var/www/html/${APP_PUBLIC_DIR};
15
15
index index.php index.html;
16
16
17
- # Framework specific configuration
18
- include /etc/nginx/conf.d/framework /${APP_FRAMEWORK }.conf;
17
+ # Workspace specific configuration
18
+ include /etc/nginx/conf.d/workspace /${APP_WORKSPACE }.conf;
19
19
20
20
# PHP-FPM Configuration
21
21
location ~ \.php$ {
@@ -74,8 +74,8 @@ server {
74
74
# access_log /var/log/nginx/access.log;
75
75
# error_log /var/log/nginx/error.log;
76
76
#
77
- # # Framework specific configuration
78
- # include /etc/nginx/conf.d/framework /${APP_FRAMEWORK }.conf;
77
+ # # Workspace specific configuration
78
+ # include /etc/nginx/conf.d/workspace /${APP_WORKSPACE }.conf;
79
79
#
80
80
# # PHP-FPM Configuration
81
81
# location ~ \.php$ {
Original file line number Diff line number Diff line change
1
+ # Default framework configuration
2
+ # Handles standard PHP applications
3
+
4
+ # Standard configuration - direct file access
5
+ location / {
6
+ try_files $uri $uri/ =404;
7
+ }
8
+
9
+ # Router-based configuration - uncomment to enable
10
+ # With this configuration, all requests will be directed to index.php
11
+ # if the requested file doesn't exist
12
+ # location / {
13
+ # try_files $uri $uri/ /index.php$is_args$args;
14
+ # }
Original file line number Diff line number Diff line change
1
+ # Laravel framework configuration
2
+
3
+ location / {
4
+ try_files $uri $uri/ /index.php?$query_string;
5
+ }
Original file line number Diff line number Diff line change
1
+ # Symfony framework configuration
2
+
3
+ location / {
4
+ try_files $uri /index.php$is_args$args;
5
+ }
You can’t perform that action at this time.
0 commit comments