+ nodejs applications support with pm2 manager
* use dockerhost in xdebug3 config for php8 in workspace * set local docker resolver for nginx * refactored base configs (join in one base config) and better separate examples for third party services * set default web port for inbucket to 82 instead of 9090, because last use for cockpit
This commit is contained in:
@ -21,7 +21,7 @@ map $http_accept $webp_suffix {
|
||||
"~*webp" ".webp";
|
||||
}
|
||||
|
||||
resolver 8.8.8.8;
|
||||
resolver 127.0.0.11;
|
||||
|
||||
map $http_host $uploads_upstream {
|
||||
wordpress.local.wpstudio.ru "https://somewp.site";
|
||||
|
20
config/nginx/conf.d/z-nodejs.conf.example
Normal file
20
config/nginx/conf.d/z-nodejs.conf.example
Normal file
@ -0,0 +1,20 @@
|
||||
map $http_host $pm2 {
|
||||
someprojectone.build.local.wpstudio.ru pm2-someprojectone;
|
||||
someprojecttwo.build.local.wpstudio.ru pm2-someprojecttwo;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name
|
||||
someprojectone.build.local.wpstudio.ru
|
||||
someprojecttwo.build.local.wpstudio.ru
|
||||
;
|
||||
location / {
|
||||
resolver 127.0.0.11;
|
||||
proxy_pass http://$pm2:3000;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user