Applications
FileDrop |
partage de fichiers
|
Etherpad |
éditeur de texte collaboratif
|
Log
/opt/sandstorm/var/log/sandstorm.log
Installation
|
wget https://raw.githubusercontent.com/sandstorm-io/sandstorm/master/install.sh
bash install.sh
|
/etc/nginx/sites-available/sandstorm.conf
|
# This magic stanza is ESSENTIAL to avoid breaking WebSockets.
#
# Specifically, for WebSocket forwarding, we want to forward the `Connection` header.
# This "map" declaration helps with that.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name sandstorm.nuc *.sandstorm.nuc;
location / {
proxy_pass http://127.0.0.1:6080;
# Forward the Host header, which is used to route requests for
# static content published from Sandstorm apps.
proxy_set_header Host $http_host;
# Forward WebSocket.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-IP $remote_addr;
}
# Allow large spk uploads from the /install form and allow grains to receive large uploads.
client_max_body_size 1024m;
}
|
/opt/sandstorm/sandstorm.conf
|
PORT=6080
BIND_IP=127.0.0.1
BASE_URL=http://sandstorm.nuc
WILDCARD_HOST=*.sandstorm.nuc
|