Do the thing with the postgres url
This commit is contained in:
parent
f921d7b123
commit
9e4a37baab
@ -15,6 +15,8 @@ open Npgsql.FSharp
|
|||||||
DotEnv.Load(DotEnvOptions(envFilePaths = [ "../.prod.env" ], overwriteExistingVars = false))
|
DotEnv.Load(DotEnvOptions(envFilePaths = [ "../.prod.env" ], overwriteExistingVars = false))
|
||||||
|
|
||||||
let connStr = Environment.GetEnvironmentVariable("DATABASE_URL")
|
let connStr = Environment.GetEnvironmentVariable("DATABASE_URL")
|
||||||
|
.Replace("postgresql://", "postgres://")
|
||||||
|
.Replace("?sslmode=require", "")
|
||||||
let apiKey = Environment.GetEnvironmentVariable("API_KEY")
|
let apiKey = Environment.GetEnvironmentVariable("API_KEY")
|
||||||
|
|
||||||
let validateApiKey (ctx : HttpContext) =
|
let validateApiKey (ctx : HttpContext) =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user