diff --git a/config.example.jsonc b/config.example.jsonc new file mode 100644 index 0000000..e5b9bae --- /dev/null +++ b/config.example.jsonc @@ -0,0 +1,43 @@ +//WARNING DO NOT USE THIS CONFIG, USE THE REGULAR EXAMPLE, CANOPY DOES NOT SUPPORT JSONC CONFIGS! +//This file merely exists to help you configure your actual config file +{ + //Display name on the nav bar and a coupla other places + "instanceName": "Canopy", + //Scream about exceptions in the console + "verbose": false, + //Port to bind to (most linux/unix systems req root for ports below 1000, you should probably use nginx if you want port 80 or 443) + "port": 8080, + //Lets the server know it's sitting behind a reverse-proxy + "proxied": false, + //Protocol (either HTTP or HTTPS) + "protocol": "http", + //Domain the server is available at, used for server-side link generation + "domain": "localhost", + //Session secret used to secure session keys + "sessionSecret": "CHANGE_ME", + //Altacha secret used to generate altcha challenges + "altchaSecret": "CHANGE_ME", + //IP Secret used to salt IP Hashes + "ipSecret": "CHANGE_ME", + //SSL cert and key locations + "ssl":{ + "cert": "./server.cert", + "key": "./server.key" + }, + //DB configuration + "db":{ + "address": "127.0.0.1", + "port": "27017", + "database": "canopy", + "user": "canopy", + "pass": "CHANGE_ME" + }, + //maintainence email configuration + "mail":{ + "host": "mail.42069.weed", + "port": 465, + "secure": true, + "address": "toke@42069.weed", + "pass": "CHANGE_ME" + } +} \ No newline at end of file diff --git a/package.json b/package.json index c39c2e0..a8a2ae1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "canopy-of", - "version": "0.2.1", + "version": "0.2.2", "license": "AGPL-3.0-only", "dependencies": { "altcha": "^1.0.7",