fix env and url

This commit is contained in:
2024-12-19 11:31:41 +07:00
parent 05c1374b2a
commit 3b9a56148e
3 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
FROM golang:1.23-alpine AS builder
# Install tzdata dan dependencies build
RUN apk add --no-cache tzdata build-base
# Set timezone ke Asia/Jakarta
ENV TZ=Asia/Jakarta
WORKDIR /app
COPY go.mod go.sum ./
@@ -15,7 +21,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
# RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata
RUN apk --no-cache add ca-certificates
WORKDIR /root/

View File

@@ -28,7 +28,7 @@ services:
- SATUDATA_NAME=satu_db
- SATUDATA_PORT=5000
# BPJS
- BASEURL_BPJS=https://apijkn.bpjs-kesehatan.go.id
- BASEURL_BPJS=https://apijkn.bpjs-kesehatan.go.id/
- CONS_ID=5257
- USER_KEY=4cf1cbef8c008440bbe9ef9ba789e482
- SECRET_KEY=1bV363512D

View File

@@ -20,7 +20,7 @@ import (
func GetJadwalDokter() bool {
baseUrl := os.Getenv("BASEURL_BPJS")
endpoint := os.Getenv("ANTREAN_RS")
url := baseUrl + "/" + endpoint
url := baseUrl + endpoint
conf := config.ConfigBpjs{}
header := cfg.SetHeader(false, conf)