aboutsummaryrefslogtreecommitdiff
path: root/config.sample.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-01-21 17:21:29 -0300
committerPitu <[email protected]>2017-01-21 17:21:29 -0300
commitcd123b4c119127b9300a641e3735221f2b03a7bc (patch)
tree1f818fde559c54a1a12ec308b53075f09372e611 /config.sample.js
parentFixed public upload. Whoopsies (diff)
downloadhost.fuwn.me-cd123b4c119127b9300a641e3735221f2b03a7bc.tar.xz
host.fuwn.me-cd123b4c119127b9300a641e3735221f2b03a7bc.zip
Forced resolve, updated config.sample.js
Diffstat (limited to 'config.sample.js')
-rw-r--r--config.sample.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/config.sample.js b/config.sample.js
index 89b83a2..fe09ad6 100644
--- a/config.sample.js
+++ b/config.sample.js
@@ -12,14 +12,16 @@ module.exports = {
// The registered domain where you will be serving the app. Use IP if none.
domains: [
- // Files will be served at http(s)://i.kanacchi.moe/Fxt0.png
- { host: 'i.kanacchi.moe' },
+ /*
+ You need to specify the base domain where loli-self is running
+ and how should it resolve the URL for uploaded files. For example:
+ */
- // Files will be served at http(s)://my.kanacchi.moe/loli-self/files/Fxt0.png
- { host: 'my.kanacchi.moe', resolve: 'https://my.kanacchi.moe/loli-self/files' },
+ // Files will be served at http(s)://i.kanacchi.moe/Fxt0.png
+ { host: 'kanacchi.moe', resolve: 'https://i.kanacchi.moe'},
- // Files will be served at http://localhost:9999/Fxt0.png
- { domain: 'localhost:9999' }
+ // Files will be served at https://my.kanacchi.moe/loli-self/files/Fxt0.png
+ { host: 'kanacchi.moe', resolve: 'https://my.kanacchi.moe/loli-self/files' }
],