Skip to content
New issue

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

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

Already on GitHub? # to your account

[Documentation] Doku wie das Frontend eingebunden wird #181

Open
2 tasks done
hupling opened this issue Sep 27, 2024 · 2 comments
Open
2 tasks done

[Documentation] Doku wie das Frontend eingebunden wird #181

hupling opened this issue Sep 27, 2024 · 2 comments
Labels
Type: Documentation The issue contains work for the documentation
Milestone

Comments

@hupling
Copy link
Contributor

hupling commented Sep 27, 2024

Relevant documentation

refarch-gateway

Problem description (optional)

    - name: SPRING_CLOUD_GATEWAY_ROUTES_2_ID
      value: frontend
    - name: SPRING_CLOUD_GATEWAY_ROUTES_2_URI
      value: "http://a-frontend:8080/"
    - name: SPRING_CLOUD_GATEWAY_ROUTES_2_PREDICATES_0
      value: Path=/**
    - name: SPRING_CLOUD_GATEWAY_ROUTES_2_FILTERS_0
      value: RewritePath=/(?<urlsegments>.*), /$\{urlsegments}
    - name: SPRING_CLOUD_GATEWAY_ROUTES_2_FILTERS_1
      value: RemoveResponseHeader=WWW-Authenticate

so werden alle / auf das Frontend weitergeleitet. Es gibt aber auch Endpunkte, die nicht weitergeleitet werden sollen z. B. /# /logout /aculator

Desired solution

Lesen von Spring Docs

Additional context (optional)

No response

No duplicate

  • I confirm that this issue is not a duplicate

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hupling hupling added the Type: Documentation The issue contains work for the documentation label Sep 27, 2024
@hupling
Copy link
Contributor Author

hupling commented Sep 27, 2024

@boal hat folgende Links vorgeschlagen

Der Hinweis ist hier: spring-cloud/spring-cloud-gateway#496 (comment)

Und hier ein Beispiel: https://stackoverflow.com/a/55006404

Und es gibt ein Ticket, dass genau dein Problem adressiert, dass bestimmte predicates nicht weiter geroutet wrden sollen.

spring-cloud/spring-cloud-gateway#1266

Und es gibt ein Ticket, dass genau dein Problem adressiert, dass bestimmte predicates nicht weiter geroutet wrden sollen.

spring-cloud/spring-cloud-gateway#1266

@simonhir simonhir added this to the Release 1.0 milestone Dec 6, 2024
@simonhir
Copy link
Member

Paths like /logout and /actuator are always handled before route resolution so this isn't a real problem and the frontend can catch all with /** as last route entry.
@hupling Not really sure what need to be done here, can this be closed?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Documentation The issue contains work for the documentation
Projects
Status: Open
Development

No branches or pull requests

2 participants