mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-05 03:16:27 +02:00
notes and config
This commit is contained in:
parent
08d8329d3d
commit
55ff3a28df
4 changed files with 28 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
console.log('hi')
|
0
var/multidock
Normal file → Executable file
0
var/multidock
Normal file → Executable file
8
var/notes.txt
Normal file
8
var/notes.txt
Normal file
|
@ -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
|
20
var/piston.nginx
Normal file
20
var/piston.nginx
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue