Updated server package.json so it will actually rebuild the server with npm install
Updated nginx config for the future to see whats going on Removed readme, we don't need it! Created a production release script that will upload build to avidhabit server
This commit is contained in:
parent
534bcb47cf
commit
1db2a79131
@ -1,54 +1,48 @@
|
|||||||
upstream nodeapp {
|
upstream expressapp {
|
||||||
ip_hash;
|
server 127.0.0.1:3000;
|
||||||
server 127.0.0.1:8081;
|
keepalive 8;
|
||||||
server 127.0.0.1:8082;
|
|
||||||
server 127.0.0.1:8083;
|
|
||||||
server 127.0.0.1:8084;
|
|
||||||
server 127.0.0.1:8085;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name _;
|
|
||||||
return 301 https://$server_name$request_uri;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 80;
|
||||||
listen [::]:443 ssl;
|
|
||||||
server_name _;
|
|
||||||
root /home/mab/pi/client/;
|
|
||||||
|
|
||||||
access_log /var/log/nginx/httpslocalhost.access.log;
|
server_name logiclabs.icu;
|
||||||
error_log /var/log/nginx/httpslocalhost.error.log;
|
root /home/mab/pi/client/dist;
|
||||||
|
|
||||||
include snippets/self-signed.conf;
|
access_log /var/log/nginx/httpslocalhost.access.log;
|
||||||
include snippets/ssl-params.conf;
|
error_log /var/log/nginx/httpslocalhost.error.log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8080;
|
autoindex on;
|
||||||
proxy_http_version 1.1;
|
#try_files $uri $uri/ /index.html;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
}
|
||||||
proxy_set_header Connection 'upgrade';
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_cache_bypass $http_upgrade;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /io {
|
location /app {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_pass http://127.0.0.1:8444;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_http_version 1.1;
|
||||||
proxy_http_version 1.1;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header Connection 'upgrade';
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass http://nodeapp;
|
proxy_cache_bypass $http_upgrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /public {
|
location /api {
|
||||||
autoindex on;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
alias /home/mab/pi/client/public;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
access_log off;
|
proxy_set_header Host $http_host;
|
||||||
expires max;
|
proxy_set_header X-NginX-Proxy true;
|
||||||
}
|
|
||||||
}
|
proxy_pass http://expressapp;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /solr {
|
||||||
|
proxy_pass http://127.0.0.1:8983;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -10,8 +10,13 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.18.3",
|
"body-parser": "^1.18.3",
|
||||||
|
"cheerio": "^1.0.0-rc.3",
|
||||||
"express": "^4.16.4",
|
"express": "^4.16.4",
|
||||||
"request-promise": "^4.2.4"
|
"jsonwebtoken": "^8.5.1",
|
||||||
|
"mysql2": "^1.6.5",
|
||||||
|
"request": "^2.88.0",
|
||||||
|
"request-promise": "^4.2.4",
|
||||||
|
"solr-node": "^1.2.1"
|
||||||
},
|
},
|
||||||
"_moduleAliases": {
|
"_moduleAliases": {
|
||||||
"@root": ".",
|
"@root": ".",
|
||||||
|
Loading…
Reference in New Issue
Block a user