notes and config
This commit is contained in:
parent
08d8329d3d
commit
55ff3a28df
|
@ -1 +0,0 @@
|
|||
console.log('hi')
|
|
@ -0,0 +1,8 @@
|
|||
create vm
|
||||
git piston
|
||||
install dock and piston units
|
||||
systemctl enable dock@{1..10}.service
|
||||
systemctl start dock@{1..10}.service
|
||||
systemctl enable piston@{1..10}.service
|
||||
systemctl start piston@{1..10}.service
|
||||
install nginx config
|
|
@ -0,0 +1,20 @@
|
|||
upstream piston {
|
||||
server 127.0.0.1:2001;
|
||||
server 127.0.0.1:2002;
|
||||
server 127.0.0.1:2003;
|
||||
server 127.0.0.1:2004;
|
||||
server 127.0.0.1:2005;
|
||||
server 127.0.0.1:2006;
|
||||
server 127.0.0.1:2007;
|
||||
server 127.0.0.1:2008;
|
||||
server 127.0.0.1:2009;
|
||||
server 127.0.0.1:2010;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://piston;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue