add ui to upload to IPFS node on box
This commit is contained in:
parent
99089126c0
commit
54b3da996c
27 changed files with 78892 additions and 4 deletions
24
assets/js/upload/config.js
Normal file
24
assets/js/upload/config.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Change this file as you need it
|
||||
|
||||
const config = {
|
||||
port: 5001,
|
||||
gateway: 8080
|
||||
}
|
||||
|
||||
const node = {
|
||||
default: 'local',
|
||||
remote: {
|
||||
address: 'ipfs.sea.tube',
|
||||
...config,
|
||||
protocol: 'https'
|
||||
},
|
||||
|
||||
// default local node
|
||||
// $butter_name is replaced with the butterbox's address during provisioning
|
||||
// see https://gitlab.com/likebutter/butterbox-rpi
|
||||
local: {
|
||||
address: window.location.hostname,
|
||||
...config,
|
||||
protocol: 'http'
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue