add nginx service
This commit is contained in:
34
nginx/crm.conf
Normal file
34
nginx/crm.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
server {
|
||||
listen 80;
|
||||
charset utf-8;
|
||||
|
||||
location ^~ /server {
|
||||
rewrite ^/server(/.*)$ $1 break;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass laravel:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/laravel/public/index.php;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://nextjs:3106;
|
||||
}
|
||||
|
||||
location /notification {
|
||||
proxy_pass http://notification_server:3023;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 86400;
|
||||
}
|
||||
|
||||
# listen 443 ssl; # managed by Certbot
|
||||
# ssl_certificate /etc/letsencrypt/live/crm.witel.ir/fullchain.pem; # managed by Certbot
|
||||
# ssl_certificate_key /etc/letsencrypt/live/crm.witel.ir/privkey.pem; # managed by Certbot
|
||||
# include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
}
|
||||
Reference in New Issue
Block a user