Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik v3 (COSMOS 6) #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions openc3-traefik/traefik-allow-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: Path(`/tools/{id:.*/.*[.].*}`)
rule: PathRegexp(`/tools/.*/.*[.].*`)
service: service-minio
priority: 6
# Route to other tool plugins hosted statically in Minio
# Where we need to add index.html to the path
# Matches any tool name that starts with static and ends with slash
statictools-index-router:
rule: Path(`/tools/static{rest:.*}/`)
rule: PathRegexp(`/tools/static.*/`)
middlewares:
# add index.html to the end
- "addIndexHtml"
Expand All @@ -66,7 +66,7 @@ http:
# Where we need to add .html to the path
# Matches any tool name that starts with static
statictools-dothtml-router:
rule: Path(`/tools/static{rest:.*}`)
rule: PathRegexp(`/tools/static.*`)
middlewares:
# add .html to the end
- "addDotHtml"
Expand All @@ -84,7 +84,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
base-router:
rule: Path(`/{id:.*[.].*}`)
rule: PathRegexp(`/.*[.].*`)
middlewares:
# add /tools/base to the beginning
- "addToolsBase"
Expand All @@ -93,7 +93,7 @@ http:
# This is the default route for everything that doesn't match a more specific route
# It gets us to the base openc3 application
web-router:
rule: HostRegexp(`{name:.*}`)
rule: HostRegexp(`.*`)
middlewares:
# Serve /tools/base/index.html from minio
- "gotoToolsBaseIndex"
Expand Down
10 changes: 5 additions & 5 deletions openc3-traefik/traefik-letsencrypt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: Path(`/tools/{id:.*/.*[.].*}`)
rule: PathRegexp(`/tools/.*/.*[.].*`)
service: service-minio
priority: 6
tls:
Expand All @@ -85,7 +85,7 @@ http:
# Where we need to add index.html to the path
# Matches any tool name that starts with static and ends with slash
statictools-index-router:
rule: Path(`/tools/static{rest:.*}/`)
rule: PathRegexp(`/tools/static.*/`)
middlewares:
# add index.html to the end
- "addIndexHtml"
Expand All @@ -99,7 +99,7 @@ http:
# Where we need to add .html to the path
# Matches any tool name that starts with static
statictools-dothtml-router:
rule: Path(`/tools/static{rest:.*}`)
rule: PathRegexp(`/tools/static.*`)
middlewares:
# add .html to the end
- "addDotHtml"
Expand All @@ -125,7 +125,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
base-router:
rule: Path(`/{id:.*[.].*}`)
rule: PathRegexp(`/.*[.].*`)
middlewares:
# add /tools/base to the beginning
- "addToolsBase"
Expand All @@ -138,7 +138,7 @@ http:
# This is the default route for everything that doesn't match a more specific route
# It gets us to the base openc3 application
web-router:
rule: HostRegexp(`{name:.*}`)
rule: HostRegexp(`.*`)
middlewares:
# Serve /tools/base/index.html from minio
- "gotoToolsBaseIndex"
Expand Down
10 changes: 5 additions & 5 deletions openc3-traefik/traefik-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: Path(`/tools/{id:.*/.*[.].*}`)
rule: PathRegexp(`/tools/.*/.*[.].*`)
service: service-minio
priority: 6
tls: {}
# Route to other tool plugins hosted statically in Minio
# Where we need to add index.html to the path
# Matches any tool name that starts with static and ends with slash
statictools-index-router:
rule: Path(`/tools/static{rest:.*}/`)
rule: PathRegexp(`/tools/static.*/`)
middlewares:
# add index.html to the end
- "addIndexHtml"
Expand All @@ -87,7 +87,7 @@ http:
# Where we need to add .html to the path
# Matches any tool name that starts with static
statictools-dothtml-router:
rule: Path(`/tools/static{rest:.*}`)
rule: PathRegexp(`/tools/static.*`)
middlewares:
# add .html to the end
- "addDotHtml"
Expand All @@ -107,7 +107,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
base-router:
rule: Path(`/{id:.*[.].*}`)
rule: PathRegexp(`/.*[.].*`)
middlewares:
# add /tools/base to the beginning
- "addToolsBase"
Expand All @@ -117,7 +117,7 @@ http:
# This is the default route for everything that doesn't match a more specific route
# It gets us to the base openc3 application
web-router:
rule: HostRegexp(`{name:.*}`)
rule: HostRegexp(`.*`)
middlewares:
# Serve /tools/base/index.html from minio
- "gotoToolsBaseIndex"
Expand Down
10 changes: 5 additions & 5 deletions openc3-traefik/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: Path(`/tools/{id:.*/.*[.].*}`)
rule: PathRegexp(`/tools/.*/.*[.].*`)
service: service-minio
priority: 6
# Route to other tool plugins hosted statically in Minio
# Where we need to add index.html to the path
# Matches any tool name that starts with static and ends with slash
statictools-index-router:
rule: Path(`/tools/static{rest:.*}/`)
rule: PathRegexp(`/tools/static.*/`)
middlewares:
# add index.html to the end
- "addIndexHtml"
Expand All @@ -66,7 +66,7 @@ http:
# Where we need to add .html to the path
# Matches any tool name that starts with static
statictools-dothtml-router:
rule: Path(`/tools/static{rest:.*}`)
rule: PathRegexp(`/tools/static.*`)
middlewares:
# add .html to the end
- "addDotHtml"
Expand All @@ -84,7 +84,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
base-router:
rule: Path(`/{id:.*[.].*}`)
rule: PathRegexp(`/.*[.].*`)
middlewares:
# add /tools/base to the beginning
- "addToolsBase"
Expand All @@ -93,7 +93,7 @@ http:
# This is the default route for everything that doesn't match a more specific route
# It gets us to the base openc3 application
web-router:
rule: HostRegexp(`{name:.*}`)
rule: HostRegexp(`.*`)
middlewares:
# Serve /tools/base/index.html from minio
- "gotoToolsBaseIndex"
Expand Down