parent
e6ea2208c7
commit
dff23cf9c6
|
@ -1,3 +1,10 @@
|
||||||
|
[[redirects]]
|
||||||
|
# Use a proxy because bonsai doesn't support IPv6.
|
||||||
|
from = "/backend/*"
|
||||||
|
to = "https://nixos-search-7-1733963800.us-east-1.bonsaisearch.net/:splat"
|
||||||
|
status = 200
|
||||||
|
force = true
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/*"
|
from = "/*"
|
||||||
to = "/index.html"
|
to = "/index.html"
|
||||||
|
|
|
@ -7,7 +7,7 @@ const {Elm} = require('./Main');
|
||||||
Elm.Main.init({
|
Elm.Main.init({
|
||||||
flags: {
|
flags: {
|
||||||
elasticsearchMappingSchemaVersion: parseInt(process.env.ELASTICSEARCH_MAPPING_SCHEMA_VERSION),
|
elasticsearchMappingSchemaVersion: parseInt(process.env.ELASTICSEARCH_MAPPING_SCHEMA_VERSION),
|
||||||
elasticsearchUrl: process.env.ELASTICSEARCH_URL || 'https://nixos-search-7-1733963800.us-east-1.bonsaisearch.net:443',
|
elasticsearchUrl: process.env.ELASTICSEARCH_URL || '/backend',
|
||||||
elasticsearchUsername : process.env.ELASTICSEARCH_USERNAME || 'aWVSALXpZv',
|
elasticsearchUsername : process.env.ELASTICSEARCH_USERNAME || 'aWVSALXpZv',
|
||||||
elasticsearchPassword : process.env.ELASTICSEARCH_PASSWORD || 'X8gPHnzL52wFEekuxsfQ9cSh',
|
elasticsearchPassword : process.env.ELASTICSEARCH_PASSWORD || 'X8gPHnzL52wFEekuxsfQ9cSh',
|
||||||
nixosChannels : JSON.parse(process.env.NIXOS_CHANNELS)
|
nixosChannels : JSON.parse(process.env.NIXOS_CHANNELS)
|
||||||
|
|
Loading…
Reference in a new issue