Skip to content

Conversation

@Squixx
Copy link
Contributor

@Squixx Squixx commented Apr 3, 2024

Description

I want to run dependency track frontend on a path instead of /, but doing this currently would require to do a full rebuild of the frontend. This PR could be a possible solution direction.

I've seen the reference to:

 // Relative paths cannot be supported. Research by @nscur0 - https://owasp.slack.com/archives/CTC03GX9S/p1608400149085400
  publicPath: '/',

However I can not open this link, so am oblivious to any previous research

I'll update the docs once it's clear this is the way forward

Addressed Issue

DependencyTrack/dependency-track#1514

Additional Details

setting the BASE_HREF env variable allows you to set a path

Checklist

@Squixx Squixx changed the title Feat/urlpath Feature: add suport for serving from custom path Apr 3, 2024
@Squixx Squixx changed the title Feature: add suport for serving from custom path Feature: add support for serving from custom path Apr 3, 2024
Martijn van der Meij added 4 commits April 3, 2024 16:47
Signed-off-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
Signed-off-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
Signed-off-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
Signed-off-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
@fnxpt
Copy link
Contributor

fnxpt commented Apr 23, 2024

similar to #23

@Squixx
Copy link
Contributor Author

Squixx commented Apr 23, 2024

similar to #23

Does that work with oidc? This pr also has working oidc, but I'd be happy if either could move forward

@nscuro nscuro self-assigned this Jun 18, 2024
@nscuro nscuro added the enhancement New feature or request label Jun 18, 2024
@nscuro nscuro added this to the 4.12 milestone Jun 18, 2024
@nscuro
Copy link
Member

nscuro commented Jun 18, 2024

Sorry for the long wait @Squixx, I'll have a look at this next and have assigned it to v4.12.

Copy link
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again sorry for the delay! Overall this looks good to me.

Just a minor nitpick about naming of the env var.

Also, it would be good to add a few words about how to configure this in the docs: https://github.com/DependencyTrack/dependency-track/blob/master/docs/_docs/getting-started/configuration.md#frontend

Squixx and others added 2 commits July 1, 2024 09:23
Signed-off-by: Martijn van der Meij <martijn.vandermeij@vattenfall.com>
@Squixx
Copy link
Contributor Author

Squixx commented Jul 1, 2024

Again sorry for the delay! Overall this looks good to me.

Just a minor nitpick about naming of the env var.

Also, it would be good to add a few words about how to configure this in the docs: https://github.com/DependencyTrack/dependency-track/blob/master/docs/_docs/getting-started/configuration.md#frontend

added docs in DependencyTrack/dependency-track#3899

@nscuro nscuro merged commit b1298a8 into DependencyTrack:master Jul 1, 2024
@rissson rissson mentioned this pull request Oct 14, 2024
1 task
nscuro added a commit to DependencyTrack/hyades-frontend that referenced this pull request Dec 5, 2024
Ports DependencyTrack/frontend#801

Co-authored-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
Signed-off-by: nscuro <nscuro@protonmail.com>
nscuro added a commit to DependencyTrack/hyades-frontend that referenced this pull request Dec 5, 2024
Ports DependencyTrack/frontend#801

Co-authored-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
Signed-off-by: nscuro <nscuro@protonmail.com>
nscuro added a commit to DependencyTrack/hyades-frontend that referenced this pull request Jan 27, 2025
Ports DependencyTrack/frontend#801

Co-authored-by: Martijn van der Meij <martijn.vandermeij@vattenfall.nl>
Signed-off-by: nscuro <nscuro@protonmail.com>

# Conflicts:
#	docker/etc/nginx/templates/default.conf.template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants