1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-26 09:37:28 +00:00

Put port in constants

This commit is contained in:
Cadence Ember 2020-03-24 16:15:04 +13:00
parent 49ad9ee434
commit df7487de08
No known key found for this signature in database
GPG Key ID: 81015DF9AA8607E1
2 changed files with 10 additions and 3 deletions

View File

@ -6,8 +6,15 @@
let constants = { let constants = {
// Things that server owners _should_ change! // Things that server owners _should_ change!
website_origin: "http://localhost:10407", // Protocol and domain that this instance is hosted on. Do NOT include a trailing slash. // Protocol and domain that the website can be accessed on. Images and links in RSS feeds start with this URL.
has_privacy_policy: false, // You MUST read /src/site/pug/privacy.pug.template before changing this! // Do NOT include a trailing slash. If you leave this as localhost, Bibliogram will not work correctly when accessed from any other device.
// If you are using nginx to make Bibliogram accessible on port 80/443, do NOT write a port here.
// For example, "https://bibliogram.art"
website_origin: "http://localhost:10407",
// Port to actually run the webserver on.
port: 10407,
// You MUST read /src/site/pug/privacy.pug.template before changing has_privacy_policy!
has_privacy_policy: false,
// Things that server owners _could_ change if they want to. // Things that server owners _could_ change if they want to.
tor: { tor: {

View File

@ -5,7 +5,7 @@ const constants = require("../lib/constants")
const passthrough = require("./passthrough") const passthrough = require("./passthrough")
const pinski = new Pinski({ const pinski = new Pinski({
port: 10407, port: constants.port,
relativeRoot: __dirname, relativeRoot: __dirname,
basicCacheControl: { basicCacheControl: {
exts: ["ttf", "woff2", "png", "jpg", "jpeg", "svg", "gif", "webmanifest", "ico"], exts: ["ttf", "woff2", "png", "jpg", "jpeg", "svg", "gif", "webmanifest", "ico"],