forked from ecamp/ecamp3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seperate frankenphp from ingress for local development
That we have a more similar setup in development as in prod. Issue: ecamp#5277
- Loading branch information
Showing
7 changed files
with
90 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
backend default { | ||
.host = "api"; | ||
.port = "3000"; | ||
.port = "3001"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
user nginx; | ||
worker_processes auto; | ||
error_log /var/log/nginx/error.log warn; | ||
pid /var/run/nginx.pid; | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
resolver 127.0.0.11; | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
access_log /var/log/nginx/access.log main; | ||
sendfile on; | ||
keepalive_timeout 65; | ||
server { | ||
listen 3000; | ||
server_name localhost; | ||
|
||
location / { | ||
proxy_pass http://frontend:3000; | ||
} | ||
|
||
location /api/ { | ||
# the Set-Cookie: XDEBUG_SESSION=PHPSTORM; path=/; SameSite=Lax header is set too many times | ||
# temporary workaround from https://stackoverflow.com/a/27551259 | ||
proxy_buffer_size 128k; | ||
proxy_buffers 4 256k; | ||
proxy_busy_buffers_size 256k; | ||
proxy_set_header X-Forwarded-Prefix /api; | ||
proxy_pass http://api:3001/; | ||
} | ||
|
||
location /print { | ||
proxy_pass http://print:3003; | ||
} | ||
|
||
location /mail { | ||
proxy_pass http://mail:1080; | ||
} | ||
} | ||
server { | ||
listen 3004; | ||
server_name localhost; | ||
|
||
location / { | ||
proxy_pass http://frontend:3000; | ||
} | ||
|
||
location /api/ { | ||
# the Set-Cookie: XDEBUG_SESSION=PHPSTORM; path=/; SameSite=Lax header is set too many times | ||
# temporary workaround from https://stackoverflow.com/a/27551259 | ||
proxy_buffer_size 128k; | ||
proxy_buffers 4 256k; | ||
proxy_busy_buffers_size 256k; | ||
proxy_set_header X-Forwarded-Prefix /api; | ||
proxy_pass http://http-cache:8080/; | ||
} | ||
|
||
location /print { | ||
proxy_pass http://print:3003; | ||
} | ||
|
||
location /mail { | ||
proxy_pass http://mail:1080; | ||
} | ||
} | ||
} |