Commit a0ed5015 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added nginx config

parent 87b1dd34
...@@ -39,7 +39,34 @@ all: ...@@ -39,7 +39,34 @@ all:
rm -rf frappe-home rm -rf frappe-home
postinstall: postinstall: nginx-conf
cd /srv/frappe/bench && bench setup nginx cd /srv/frappe/bench && bench setup nginx
@echo "$$NGINX_CONF" > /etc/nginx/nginx.conf
cd /srv/frappe/bench && bench setup supervisor cd /srv/frappe/bench && bench setup supervisor
ln -s /srv/frappe/bench/config/supervisor.conf /etc/supervisord.d/erpnext.conf ln -s /srv/frappe/bench/config/supervisor.conf /etc/supervisord.d/erpnext.conf
nginx-conf:
define NGINX_CONF
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
include /srv/frappe/bench/config/nginx.conf;
}
endef
export NGINX_CONF
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment