Skip to content

Commit

Permalink
add additional services.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jan 29, 2024
1 parent c364502 commit bfc7a0a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 3 deletions.
75 changes: 74 additions & 1 deletion services/_traefik/config/dynamic/dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,45 @@ http:
tls: true
middlewares:
- serviceheaders
keycloak:
rule: Host(`auth.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: keycloak
entrypoints:
- web
middlewares:
- error-pages
- serviceheaders
keycloak-https:
rule: Host(`auth.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: keycloak
entrypoints:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

keycloakadmin:
rule: Host(`keycloak.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: keycloak
entrypoints:
- web
middlewares:
- error-pages
- keycloakadminserviceheaders
keycloakadmin-https:
rule: Host(`keycloak.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: keycloak
entrypoints:
- websecure
tls: true
middlewares:
- error-pages
- keycloakadminserviceheaders

files:
rule: Host(`files.typerefinery.localhost`)
Expand All @@ -26,6 +65,7 @@ http:
entrypoints:
- web
middlewares:
- error-pages
- serviceheaders
files-https:
rule: Host(`files.typerefinery.localhost`)
Expand All @@ -35,6 +75,7 @@ http:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

postgreadmin:
Expand All @@ -44,6 +85,7 @@ http:
entrypoints:
- web
middlewares:
- error-pages
- serviceheaders
postgreadmin-https:
rule: Host(`pgadmin.typerefinery.localhost`)
Expand All @@ -53,6 +95,7 @@ http:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

bpmn:
Expand All @@ -62,6 +105,7 @@ http:
entrypoints:
- web
middlewares:
- error-pages
- serviceheaders
bpmn-https:
rule: Host(`bpmn.typerefinery.localhost`)
Expand All @@ -71,6 +115,7 @@ http:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

nginx:
Expand All @@ -80,6 +125,7 @@ http:
entrypoints:
- web
middlewares:
- error-pages
- serviceheaders
nginx-https:
rule: Host(`nginx.typerefinery.localhost`)
Expand All @@ -89,6 +135,7 @@ http:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

flow:
Expand All @@ -97,6 +144,8 @@ http:
service: flow
entrypoints:
- web
middlewares:
- error-pages
flow-https:
rule: Host(`flow.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/flow`) ) || Host(`flow.localhost`)
Expand All @@ -105,6 +154,7 @@ http:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

tms:
Expand All @@ -128,6 +178,7 @@ http:
entrypoints:
- web
middlewares:
- error-pages
- serviceheaders
jupyterlab-https:
rule: Host(`jupyterlab.typerefinery.localhost`)
Expand All @@ -137,6 +188,7 @@ http:
- websecure
tls: true
middlewares:
- error-pages
- serviceheaders

traefikdashboard:
Expand Down Expand Up @@ -217,7 +269,23 @@ http:
# cors
serviceheaders:
headers:
accesscontrolalloworiginlist: "*"
accesscontrolalloworiginlist: "https://cms.typerefinery.localhost:8101, https://flow.typerefinery.localhost:8101, https://api.typerefinery.localhost:8101"
accesscontrolallowmethods: "GET, POST, PUT, DELETE, OPTIONS"
accesscontrolallowheaders: "*"
addvaryheader: true
contentsecuritypolicy: ";"
# customResponseHeaders:
# Content-Security-Policy-Report-Only: >-
# connect-src self;
# default-src none;
# font-src self;
# img-src self;
# script-src self;
# style-src self inline-unsafe;

keycloakadminserviceheaders:
headers:
accesscontrolalloworiginlist: "https://keycloak.typerefinery.localhost, https://auth.typerefinery.localhost"
accesscontrolallowmethods: "GET, POST, PUT, DELETE, OPTIONS"
accesscontrolallowheaders: "*"
contentsecuritypolicy: ";"
Expand Down Expand Up @@ -276,6 +344,11 @@ http:
passHostHeader: true
servers:
- url: '{{ env "CMS_URL" }}'
keycloak:
loadBalancer:
passHostHeader: true
servers:
- url: '{{ env "KEYCLOAK_URL" }}'
fastapi:
loadBalancer:
passHostHeader: true
Expand Down
8 changes: 6 additions & 2 deletions services/_traefik/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@
"TRAEFIK_FILES_URL": "https://files.typerefinery.localhost:${SERVICE_PORT}/",
"TRAEFIK_BPMN_URL": "https://bpmn.typerefinery.localhost:${SERVICE_PORT}/",
"TRAEFIK_TRAEFIK_URL": "https://traefik.typerefinery.localhost:${SERVICE_PORT}/",
"TRAEFIK_KEYCLOAK_URL": "https://auth.typerefinery.localhost:${SERVICE_PORT}/",
"TRAEFIK_KEYCLOAK_ADMIN_URL": "https://keycloak.typerefinery.localhost:${SERVICE_PORT}/",
"TRAEFIK_HTTP_PORT": "${SERVICE_PORT_SECONDARY}",
"TRAEFIK_HTTPS_PORT": "${SERVICE_PORT}",
"TRAEFIK_MONGO_PORT": "8108",
"TRAEFIK_TYPEDB_PORT": "8109",
"TRAEFIK_INTERNAL_PORT": "${SERVICE_PORT_CONSOLE}",
"TRAEFIK_HOST_DOMAIN": "localhost.${CERT_DOMAIN}",
"TRAEFIK_HOST_DOMAIN_URL": "localhost.${CERT_DOMAIN}"
"TRAEFIK_HOST_DOMAIN_URL": "localhost.${CERT_DOMAIN}",
"TRAEFIK_HOST_DOMAIN_SUFFIX": "typerefinery.localhost"
},
"commandline": {
"win32": " --log.level=DEBUG --providers.file.filename=\"${SERVICE_HOME}\\config\\dynamic\\dynamic.yml\" --api.insecure=true --api.dashboard=true --entryPoints.web.address=\":${SERVICE_PORT_SECONDARY}\" --entryPoints.websecure.address=\":${SERVICE_PORT}\" --entryPoints.traefik.address=\":${SERVICE_PORT_CONSOLE}\" --entryPoints.mongo.address=\":${TRAEFIK_MONGO_PORT}\" --entryPoints.typedb.address=\":${TRAEFIK_TYPEDB_PORT}\" --serversTransport.insecureSkipVerify=true",
Expand All @@ -69,7 +72,8 @@
"retries": 180
},
"depend_on": [
"localcert"
"localcert",
"nginx"
],
"setuparchive": {
"win32": {
Expand Down

0 comments on commit bfc7a0a

Please sign in to comment.