commit
1457816e5e
|
@ -5,7 +5,7 @@ Description=siad-upload
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/home/user/siad-upload
|
WorkingDirectory=/home/user/siad-upload
|
||||||
EnvironmentFile=/home/user/.sia/sia-upload.env
|
EnvironmentFile=/home/user/.sia/sia-upload.env
|
||||||
ExecStart=/home/user/go/bin/siad --api-addr "localhost:9970" --rpc-addr ":9971" --host-addr ":9972"
|
ExecStart=/home/user/go/bin/siad --api-addr "localhost:9970" --rpc-addr ":9971" --host-addr ":9972" --siamux-addr ":9973"
|
||||||
ExecStop=/home/user/go/bin/siac --addr "localhost:9970" stop
|
ExecStop=/home/user/go/bin/siac --addr "localhost:9970" stop
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
SyslogIdentifier=siad-upload
|
SyslogIdentifier=siad-upload
|
||||||
|
|
|
@ -21,6 +21,28 @@ server {
|
||||||
root /home/user/skynet-webportal/public; # path to root of index.html
|
root /home/user/skynet-webportal/public; # path to root of index.html
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /stats {
|
||||||
|
proxy_set_header Access-Control-Allow-Origin: *;
|
||||||
|
proxy_set_header User-Agent: Sia-Agent;
|
||||||
|
|
||||||
|
# replace BASE64_AUTHENTICATION with base64 encoded <user>:<password>
|
||||||
|
# for sia user is empty so it's just :<password>
|
||||||
|
# to generate the passcode use https://www.base64encode.org or any other base64 encoder
|
||||||
|
proxy_set_header Authorization "Basic BASE64_AUTHENTICATION";
|
||||||
|
proxy_pass http://127.0.0.1:9970/skynet/stats;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /statsdown {
|
||||||
|
proxy_set_header Access-Control-Allow-Origin: *;
|
||||||
|
proxy_set_header User-Agent: Sia-Agent;
|
||||||
|
|
||||||
|
# replace BASE64_AUTHENTICATION with base64 encoded <user>:<password>
|
||||||
|
# for sia user is empty so it's just :<password>
|
||||||
|
# to generate the passcode use https://www.base64encode.org or any other base64 encoder
|
||||||
|
proxy_set_header Authorization "Basic BASE64_AUTHENTICATION";
|
||||||
|
proxy_pass http://127.0.0.1:9980/skynet/stats;
|
||||||
|
}
|
||||||
|
|
||||||
location /skynet/skyfile/ {
|
location /skynet/skyfile/ {
|
||||||
client_max_body_size 1000M; # make sure to limit the size of upload to a sane value
|
client_max_body_size 1000M; # make sure to limit the size of upload to a sane value
|
||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
|
|
Reference in New Issue