diff --git a/API/DockerfileGHA b/API/DockerfileGHA index 8afe665..022ac11 100644 --- a/API/DockerfileGHA +++ b/API/DockerfileGHA @@ -16,6 +16,7 @@ COPY . . # Install the dependencies RUN npm install --only=production +RUN npm install pm2 -g # Exposing server port EXPOSE 52200 \ No newline at end of file diff --git a/API/package.json b/API/package.json index 14bcdc4..af06068 100644 --- a/API/package.json +++ b/API/package.json @@ -21,7 +21,7 @@ "pdf-lib": "^1.17.1", "pdfkit": "^0.14.0", "sharp": "^0.33.2", - "text-to-image": "^5.2.0", + "text-to-image": "^5.2.0" }, "devDependencies": { "jest": "^29.7.0", diff --git a/env-create.sh b/env-create.sh index b768217..4764700 100755 --- a/env-create.sh +++ b/env-create.sh @@ -74,10 +74,10 @@ ${PROXY_ENV} - ./Docs:/var/www/Docs labels: - traefik.enable=true - - traefik.http.routers.webdap.rule=PathPrefix(\`/posignapi\`) - - traefik.http.routers.webdap.middlewares=strip-webdap-prefix - - traefik.http.middlewares.strip-webdap-prefix.stripprefix.prefixes=/posignapi - - traefik.http.routers.webdap.entrypoints=web + - traefik.http.routers.webapi.rule=PathPrefix(\`/posignapi\`) + - traefik.http.routers.webapi.middlewares=strip-webapi-prefix + - traefik.http.middlewares.strip-webapi-prefix.stripprefix.prefixes=/posignapi + - traefik.http.routers.webapi.entrypoints=web depends_on: - database networks: @@ -96,10 +96,10 @@ ${PROXY_ENV} APP_TIMEZONE: ${TIMEZONE} labels: - traefik.enable=true - - traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`) - - traefik.http.routers.webchart.middlewares=strip-webchart-prefix - - traefik.http.middlewares.strip-webchart-prefix.stripprefix.prefixes=/posign - - traefik.http.routers.webchart.entrypoints=web + - traefik.http.routers.webposign.rule=PathPrefix(\`/posign\`) + - traefik.http.routers.webposign.middlewares=strip-webposign-prefix + - traefik.http.middlewares.strip-webposign-prefix.stripprefix.prefixes=/posign + - traefik.http.routers.webposign.entrypoints=web networks: vpcbr: ipv4_address: 172.23.0.5 @@ -159,10 +159,10 @@ ${PROXY_ENV} - ./Docs:/var/www/Docs labels: - traefik.enable=true - - traefik.http.routers.webdap.rule=PathPrefix(\`/posignapi\`) - - traefik.http.routers.webdap.middlewares=strip-webdap-prefix - - traefik.http.middlewares.strip-webdap-prefix.stripprefix.prefixes=/posignapi - - traefik.http.routers.webdap.entrypoints=web + - traefik.http.routers.webposignapi.rule=PathPrefix(\`/posignapi\`) + - traefik.http.routers.webposignapi.middlewares=strip-webposignapi-prefix + - traefik.http.middlewares.strip-webposignapi-prefix.stripprefix.prefixes=/posignapi + - traefik.http.routers.webposignapi.entrypoints=web depends_on: - database networks: @@ -181,10 +181,10 @@ ${PROXY_ENV} APP_TIMEZONE: ${TIMEZONE} labels: - traefik.enable=true - - traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`) - - traefik.http.routers.webchart.middlewares=strip-webchart-prefix - - traefik.http.middlewares.strip-webchart-prefix.stripprefix.prefixes=/posign - - traefik.http.routers.webchart.entrypoints=web + - traefik.http.routers.webposign.rule=PathPrefix(\`/posign\`) + - traefik.http.routers.webposign.middlewares=strip-webposign-prefix + - traefik.http.middlewares.strip-webposign-prefix.stripprefix.prefixes=/posign + - traefik.http.routers.webposign.entrypoints=web networks: vpcbr: ipv4_address: 172.23.0.5 @@ -234,10 +234,10 @@ ${PROXY_ENV} - ./Docs:/var/www/Docs labels: - traefik.enable=true - - traefik.http.routers.webdap.rule=PathPrefix(\`/posignapi\`) - - traefik.http.routers.webdap.middlewares=strip-webdap-prefix - - traefik.http.middlewares.strip-webdap-prefix.stripprefix.prefixes=/posignapi - - traefik.http.routers.webdap.entrypoints=web + - traefik.http.routers.webposignapi.rule=PathPrefix(\`/posignapi\`) + - traefik.http.routers.webposignapi.middlewares=strip-webposignapi-prefix + - traefik.http.middlewares.strip-webposignapi-prefix.stripprefix.prefixes=/posignapi + - traefik.http.routers.webposignapi.entrypoints=web depends_on: - database networks: @@ -256,10 +256,10 @@ ${PROXY_ENV} APP_TIMEZONE: ${TIMEZONE} labels: - traefik.enable=true - - traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`) - - traefik.http.routers.webchart.middlewares=strip-webchart-prefix - - traefik.http.middlewares.strip-webchart-prefix.stripprefix.prefixes=/posign - - traefik.http.routers.webchart.entrypoints=web + - traefik.http.routers.webposign.rule=PathPrefix(\`/posign\`) + - traefik.http.routers.webposign.middlewares=strip-webposign-prefix + - traefik.http.middlewares.strip-webposign-prefix.stripprefix.prefixes=/posign + - traefik.http.routers.webposign.entrypoints=web networks: vpcbr: ipv4_address: 172.23.0.5