diff --git a/base/Resources/nginx/conf/conf-default.rar b/base/Resources/nginx/conf/conf-default.rar new file mode 100644 index 0000000..e90f05c Binary files /dev/null and b/base/Resources/nginx/conf/conf-default.rar differ diff --git a/base/Resources/nginx/conf/conf-home.rar b/base/Resources/nginx/conf/conf-home.rar new file mode 100644 index 0000000..9df782d Binary files /dev/null and b/base/Resources/nginx/conf/conf-home.rar differ diff --git a/base/Resources/nginx/conf/home-windows.conf b/base/Resources/nginx/conf/home-windows.conf new file mode 100644 index 0000000..563301c --- /dev/null +++ b/base/Resources/nginx/conf/home-windows.conf @@ -0,0 +1,61 @@ +upstream portal { + server 127.0.0.1:18880; + keepalive 32; +} + +server { + listen 18080; + server_name _; + + gzip on; + gzip_min_length 1k; + gzip_comp_level 9; + gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml; + gzip_vary on; + gzip_disable "MSIE [1-6]\."; + + 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; + + add_header X-Content-Type-Options "nosniff"; + add_header X-Frame-Options "SAMEORIGIN"; + + proxy_http_version 1.1; + proxy_set_header Connection ""; + proxy_read_timeout 60s; + proxy_connect_timeout 5s; + proxy_send_timeout 30s; + + proxy_buffering off; + + location = / { + rewrite ^ /home permanent; + } + + location / { + proxy_pass http://portal/; + } + + location /assets/ { + proxy_pass http://portal/assets/; + expires 30d; + access_log off; + } + + location /api/ { + proxy_pass http://portal/api/; + client_max_body_size 100M; + } + + location /dev-api/ { + proxy_pass http://portal/dev-api/; + client_max_body_size 100M; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file diff --git a/base/Resources/nginx/conf/web.conf b/base/Resources/nginx/conf/web.conf new file mode 100644 index 0000000..b8bfe67 --- /dev/null +++ b/base/Resources/nginx/conf/web.conf @@ -0,0 +1,11 @@ +worker_processes 1; +events { + worker_connections 1024; +} +http { + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + include home-windows.conf; +}