Skip to content

Commit

Permalink
Update traefik config tools-router
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Dec 17, 2024
1 parent 9276c5e commit 41e4ec9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion docs.openc3.com/docs/getting-started/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ sidebar_custom_props:

COSMOS is released as Docker containers. Since we're using Docker containers and volumes we can simply stop the existing COSMOS application, then download and run the new release.

:::info Release Notes
Always check the release notes associated with the release on the [releases](https://github.com/OpenC3/cosmos/releases) page. Sometimes there are migration notes.
:::

This example assumes an existing COSMOS project at C:\cosmos-project.

1. Stop the current COSMOS application
Expand Down Expand Up @@ -39,7 +43,7 @@ In general, patch releases (x.y.Z) can be downgraded, minor releases (x.Y.z) _mi
## Migrating From COSMOS 5 to COSMOS 6

:::info Developers Only
If you haven't written any custom tools or widgets, there are no special changes required to upgrade from COSMOS 5 to COSMOS 6. Simply follow the normal upgrade instructions above.
If you haven't written any custom tools or widgets, there are no special changes required to upgrade from COSMOS 5 to COSMOS 6. Simply follow the normal upgrade instructions above including following the release notes.
:::

COSMOS 6 introduces some breaking changes for custom tools regarding the Vue framework and our common library code. We've upgraded from Vue 2 (EOL December 31, 2023) to Vue 3. These versions of Vue are not compatible with each other, so any tools written with Vue 2 will need to be updated. Additionally, our `@openc3/tool-common` NPM package has been deprecated with its functionality reorganized into two packages: `@openc3/js-common` and `@openc3/vue-common`. This is to provide a better experience for developers who are building COSMOS tools without the Vue framework.
Expand Down
2 changes: 1 addition & 1 deletion openc3-traefik/traefik-allow-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: PathRegexp(`/tools/.*/.*[.].*`)
rule: PathRegexp(`/tools/.*/.*[.](ttf|otf|woff|woff2|html|js|css|png|jpg|jpeg|gif|svg|ico|json|xml|txt|pdf|zip|tar|gz|tgz|csv|tsv|md|yaml|yml|bin|doc|docx|xls|xlsx|ppt|pptx|mp4|mp3|wav|avi|mov|flv|swf|apk|ipa|deb|rpm|exe|msi|dmg|pkg|sh|bat|cmd|ps1|py|pl|rb|php|java|class|jar|war|ear|so|dll|lib|a|o|obj|pdb|pdb|lib|dylib|framework)`)
service: service-minio
priority: 6
# Route to other tool plugins hosted statically in Minio
Expand Down
2 changes: 1 addition & 1 deletion openc3-traefik/traefik-dev-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: PathRegexp(`/tools/.*/.*[.].*`)
rule: PathRegexp(`/tools/.*/.*[.](ttf|otf|woff|woff2|html|js|css|png|jpg|jpeg|gif|svg|ico|json|xml|txt|pdf|zip|tar|gz|tgz|csv|tsv|md|yaml|yml|bin|doc|docx|xls|xlsx|ppt|pptx|mp4|mp3|wav|avi|mov|flv|swf|apk|ipa|deb|rpm|exe|msi|dmg|pkg|sh|bat|cmd|ps1|py|pl|rb|php|java|class|jar|war|ear|so|dll|lib|a|o|obj|pdb|pdb|lib|dylib|framework)`)
service: service-minio
priority: 4
# Route to other tool plugins hosted statically in Minio
Expand Down
2 changes: 1 addition & 1 deletion openc3-traefik/traefik-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: PathRegexp(`/tools/.*/.*[.].*`)
rule: PathRegexp(`/tools/.*/.*[.](ttf|otf|woff|woff2|html|js|css|png|jpg|jpeg|gif|svg|ico|json|xml|txt|pdf|zip|tar|gz|tgz|csv|tsv|md|yaml|yml|bin|doc|docx|xls|xlsx|ppt|pptx|mp4|mp3|wav|avi|mov|flv|swf|apk|ipa|deb|rpm|exe|msi|dmg|pkg|sh|bat|cmd|ps1|py|pl|rb|php|java|class|jar|war|ear|so|dll|lib|a|o|obj|pdb|pdb|lib|dylib|framework)`)
service: service-minio
priority: 6
# Route to other tool plugins hosted statically in Minio
Expand Down
2 changes: 1 addition & 1 deletion 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: PathRegexp(`/tools/.*/.*[.].*`)
rule: PathRegexp(`/tools/.*/.*[.](ttf|otf|woff|woff2|html|js|css|png|jpg|jpeg|gif|svg|ico|json|xml|txt|pdf|zip|tar|gz|tgz|csv|tsv|md|yaml|yml|bin|doc|docx|xls|xlsx|ppt|pptx|mp4|mp3|wav|avi|mov|flv|swf|apk|ipa|deb|rpm|exe|msi|dmg|pkg|sh|bat|cmd|ps1|py|pl|rb|php|java|class|jar|war|ear|so|dll|lib|a|o|obj|pdb|pdb|lib|dylib|framework)`)
service: service-minio
priority: 6
tls:
Expand Down
2 changes: 1 addition & 1 deletion openc3-traefik/traefik-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ http:
# Matches any path with a file extension which is assumed to be
# a static file
tools-router:
rule: PathRegexp(`/tools/.*/.*[.].*`)
rule: PathRegexp(`/tools/.*/.*[.](ttf|otf|woff|woff2|html|js|css|png|jpg|jpeg|gif|svg|ico|json|xml|txt|pdf|zip|tar|gz|tgz|csv|tsv|md|yaml|yml|bin|doc|docx|xls|xlsx|ppt|pptx|mp4|mp3|wav|avi|mov|flv|swf|apk|ipa|deb|rpm|exe|msi|dmg|pkg|sh|bat|cmd|ps1|py|pl|rb|php|java|class|jar|war|ear|so|dll|lib|a|o|obj|pdb|pdb|lib|dylib|framework)`)
service: service-minio
priority: 6
tls: {}
Expand Down

0 comments on commit 41e4ec9

Please sign in to comment.