- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx
More file actions
Latest commit
18 lines (16 loc) · 440 Bytes
/
Copy pathnginx
File metadata and controls
18 lines (16 loc) · 440 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//nginx
sudo apt install nginx
sudo systemctl status nginx
cd /etc/nginx/sites-available/
//nginx set location
vim default
/var/www/html
location / {
proxy_pass http://localhost:3000/;
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;
}
export RUNNER_ALLOW_RUNASROOT="1" //Must not run with sudo