-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
18 lines (15 loc) · 872 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main
import "github.com/fhir-fli/pocketfhir/pocketfhir"
func main() {
// Configuration for local development
dataDir := "./assets" // The directory to use for PocketBase data
pbIpAddress := "127.0.0.1" // PocketBase IP address for local development
caddyIpAddress := "127.0.0.1" // Caddy server loopback IP address to prevent conflict
pbPort := "8090" // PocketBase port set to 8090
httpPort := "8081" // Caddy HTTP traffic port
httpsPort := "8443" // Caddy HTTPS traffic port
enableApiLogs := true // Enable API logs for detailed local debugging
storagePath := "./storage" // Local storage path for Caddy
// Start PocketFHIR server with local development configuration
pocketfhir.StartPocketFHIR(pbPort, httpPort, httpsPort, pbIpAddress, caddyIpAddress, dataDir, enableApiLogs, storagePath)
}