chore: change configuration path

This commit is contained in:
2024-11-07 15:42:11 +01:00
parent 22aed0b118
commit d4b4a1cf35
2 changed files with 4 additions and 5 deletions

View File

@@ -11,8 +11,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X 'github.com/jkaninda/goma-gat
FROM alpine:3.20.3 FROM alpine:3.20.3
ENV TZ=UTC ENV TZ=UTC
ARG WORKDIR="/config" ARG WORKDIR="/etc/goma/"
ARG CERTSDIR="${WORKDIR}/certs"
ARG appVersion="" ARG appVersion=""
ARG user="goma" ARG user="goma"
ENV VERSION=${appVersion} ENV VERSION=${appVersion}
@@ -20,8 +19,8 @@ LABEL author="Jonas Kaninda"
LABEL version=${appVersion} LABEL version=${appVersion}
LABEL github="github.com/jkaninda/goma-gateway" LABEL github="github.com/jkaninda/goma-gateway"
RUN mkdir -p ${WORKDIR} ${CERTSDIR} && \ RUN mkdir -p ${WORKDIR} && \
chmod a+rw ${WORKDIR} ${CERTSDIR} chmod a+rw ${WORKDIR}
COPY --from=build /app/goma /usr/local/bin/goma COPY --from=build /app/goma /usr/local/bin/goma
RUN chmod a+x /usr/local/bin/goma && \ RUN chmod a+x /usr/local/bin/goma && \
ln -s /usr/local/bin/goma /usr/bin/goma ln -s /usr/local/bin/goma /usr/bin/goma

View File

@@ -1,6 +1,6 @@
package pkg package pkg
const ConfigFile = "/config/goma.yml" // Default configuration file const ConfigFile = "/etc/goma/goma.yml" // Default configuration file
const accessControlAllowOrigin = "Access-Control-Allow-Origin" // Cors const accessControlAllowOrigin = "Access-Control-Allow-Origin" // Cors
const serverName = "Goma" const serverName = "Goma"
const gatewayName = "Goma Gateway" const gatewayName = "Goma Gateway"