Dockerize client, server, and postgres database for production with container healthchecks
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
bufferToBase64
|
||||
} from './crypto.js'
|
||||
|
||||
const API_BASE = 'http://localhost:5000/api/auth'
|
||||
const API_BASE = '/api/auth'
|
||||
|
||||
// Shared in-memory container for the active user's session master key
|
||||
let activeMasterKey: ArrayBuffer | null = null
|
||||
|
||||
@@ -2,7 +2,7 @@ import { db, type LocalLogbook } from './db.js'
|
||||
import { getActiveMasterKey } from './auth.js'
|
||||
import { encryptJson, decryptJson } from './crypto.js'
|
||||
|
||||
const API_BASE = 'http://localhost:5000/api/logbooks'
|
||||
const API_BASE = '/api/logbooks'
|
||||
|
||||
export interface DecryptedLogbook {
|
||||
id: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { db } from './db.js'
|
||||
import { getActiveMasterKey } from './auth.js'
|
||||
|
||||
const API_BASE = 'http://localhost:5000/api/sync'
|
||||
const API_BASE = '/api/sync'
|
||||
const syncingLogbooks = new Set<string>()
|
||||
|
||||
let isSyncing = false
|
||||
|
||||
Reference in New Issue
Block a user