2021-12-18 14:56:34 +01:00
|
|
|
const path = require('path');
|
|
|
|
const Armadietto = require('__MODULE_PATH__/armadietto');
|
|
|
|
let store;
|
|
|
|
let server;
|
|
|
|
|
2021-12-18 18:10:41 +01:00
|
|
|
// const type = process.argv[2];
|
2021-12-18 14:56:34 +01:00
|
|
|
|
2024-01-05 15:28:04 +01:00
|
|
|
store = new Armadietto.FileTree({path: '__DATA_DIR__/storage'});
|
2021-12-18 14:56:34 +01:00
|
|
|
|
|
|
|
server = new Armadietto({
|
|
|
|
store: store,
|
2021-12-18 18:10:41 +01:00
|
|
|
http: {
|
|
|
|
port: __PORT__
|
|
|
|
},
|
2022-06-01 01:25:45 +02:00
|
|
|
// https: {
|
|
|
|
// force: true,
|
|
|
|
// port: __PORT__,
|
|
|
|
// cert: '/etc/yunohost/certs/__DOMAIN__/crt.pem',
|
|
|
|
// key: '/etc/yunohost/certs/__DOMAIN__/key.pem'
|
|
|
|
// },
|
2021-12-18 14:56:34 +01:00
|
|
|
allow: {
|
2022-01-01 16:14:00 +01:00
|
|
|
signup: __IS_SIGNUP__
|
2021-12-18 14:56:34 +01:00
|
|
|
},
|
2021-12-18 18:10:41 +01:00
|
|
|
cacheViews: false
|
2021-12-18 14:56:34 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
console.log('LISTENING ON PORT __PORT__');
|
|
|
|
server.boot();
|