Skip to content

Commit

Permalink
update traefik with filebeat andf openobserve.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jul 12, 2024
1 parent b53531b commit 8c66f9a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ CMS_PORT=8113
MONGO_PORT=8180
NGINX_PORT=8114
KEYCLOAK_PORT=8115
OPENOBSERVE_PORT=8299
54 changes: 53 additions & 1 deletion services/_traefik/config/dynamic/dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,45 @@ http:
tls: true
middlewares:
- serviceheaders

openobserve:
rule: Host(`openobserve.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: openobserve
entrypoints:
- web
middlewares:
- serviceheaders

openobserve-https:
rule: Host(`openobserve.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: openobserve
entrypoints:
- websecure
tls: true
middlewares:
- serviceheaders

openobserve-grpc:
rule: Host(`openobserve-grpc.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: openobserve-grpc
entrypoints:
- web
middlewares:
- serviceheaders

openobserve-grpc-https:
rule: Host(`openobserve-grpc.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
service: openobserve-grpc
entrypoints:
- websecure
tls: true
middlewares:
- serviceheaders

keycloak:
rule: Host(`auth.typerefinery.localhost`)
# rule: ( Host(`{{ env "TRAEFIK_HOST_DOMAIN" }}`) && PathPrefix(`/api`) ) || Host(`api.localhost`)
Expand Down Expand Up @@ -290,7 +329,7 @@ http:
# cors
serviceheaders:
headers:
accesscontrolalloworiginlist: "https://cms.typerefinery.localhost:8101, https://flow.typerefinery.localhost:8101, https://api.typerefinery.localhost:8101, http://cms.typerefinery.localhost:8101, http://flow.typerefinery.localhost:8101, http://api.typerefinery.localhost:8101"
accesscontrolalloworiginlist: "https://cms.typerefinery.localhost:8101, https://flow.typerefinery.localhost:8101, https://api.typerefinery.localhost:8101, http://cms.typerefinery.localhost:8101, http://flow.typerefinery.localhost:8101, http://openobserve.typerefinery.localhost:8101"
accesscontrolallowmethods: "GET, POST, PUT, DELETE, OPTIONS"
accesscontrolallowheaders: "*"
addvaryheader: true
Expand Down Expand Up @@ -380,6 +419,19 @@ http:
passHostHeader: true
servers:
- url: '{{ env "API_URL" }}'

openobserve:
loadBalancer:
passHostHeader: true
servers:
- url: '{{ env "OPENOBSERVE_URL" }}'

openobserve-grpc:
loadBalancer:
passHostHeader: true
servers:
- url: '{{ env "OPENOBSERVE_URL_GRPC" }}'

flow:
loadBalancer:
passHostHeader: true
Expand Down
1 change: 1 addition & 0 deletions services/_traefik/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"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_OPENOBSERVE_URL": "https://openobserve.typerefinery.localhost:${SERVICE_PORT}/",
"TRAEFIK_HTTP_PORT": "${SERVICE_PORT_SECONDARY}",
"TRAEFIK_HTTPS_PORT": "${SERVICE_PORT}",
"TRAEFIK_MONGO_PORT": "8108",
Expand Down

0 comments on commit 8c66f9a

Please sign in to comment.