mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 02:52:38 +00:00
Add publicUrl to default.json
This commit is contained in:
@@ -3,5 +3,6 @@
|
|||||||
"naturalcrit_url" : "local.naturalcrit.com:8010",
|
"naturalcrit_url" : "local.naturalcrit.com:8010",
|
||||||
"secret" : "secret",
|
"secret" : "secret",
|
||||||
"web_port" : 8000,
|
"web_port" : 8000,
|
||||||
"enable_v3" : true
|
"enable_v3" : true,
|
||||||
|
"publicUrl" : "https://homebrewery.naturalcrit.com"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ const templateFn = require('./../client/template.js');
|
|||||||
app.use((req, res)=>{
|
app.use((req, res)=>{
|
||||||
const props = {
|
const props = {
|
||||||
version : require('./../package.json').version,
|
version : require('./../package.json').version,
|
||||||
publicUrl : config.get('publicUrl') ?? 'https://homebrewery.naturalcrit.com',
|
publicUrl : config.get('publicUrl'),
|
||||||
url : req.originalUrl,
|
url : req.originalUrl,
|
||||||
brew : req.brew,
|
brew : req.brew,
|
||||||
brews : req.brews,
|
brews : req.brews,
|
||||||
|
|||||||
Reference in New Issue
Block a user