Change web root of Docker image #305
-
We're planning to run our SMP off of your Docker SQL image and wonder if there is config for changing the web root of the public APIs? Although they (/iso6523-actorid-upis... and /businesscard...) are unique enough it would make routing from external URLs more specific if we could add a prefix (e.g. /our-peppol-smp-service/iso6523-actorid-upis...). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @mirvnillith , based on the Peppol SMP specifications, you must publish the service in the root folder. This is needed for interoperability, otherwise callers have no opportunity to know what path to query. See chapter 5.3 of the Peppol SMP spec. However, this will be changed with the upcoming version of the Peppol SMP specification, but it will take a couple of months until this becomes relevant. It is currently out for public review. |
Beta Was this translation helpful? Give feedback.
-
True, but that would be the public URL. If we’re deploying behind a proxy
the internal URL routed to could be non-root. E.g. public
http://smp.my.company.com could route to
http://my.smp.service:8080/api/peppol in our internal deployment
environment (unless my limited networking knowledge fails me).
fre 10 jan. 2025 kl. 16:46 skrev Philip Helger ***@***.***>:
… Hi @mirvnillith <https://github.com/mirvnillith> , based on the Peppol
SMP specifications, you must publish the service in the root folder. This
is needed for interoperability, otherwise callers have no opportunity to
know what path to query. See chapter 5.3 of the Peppol SMP spec.
However, this will be changed with the upcoming version of the Peppol SMP
specification, but it will take a couple of months until this becomes
relevant. It is currently out for public review.
—
Reply to this email directly, view it on GitHub
<#305 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOQLONDRLDSKK3YIZISEJT2J7TNJAVCNFSM6AAAAABU6MSOOWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZZHE3TGNY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ah, or mv the ROOT folder to what I want in my sub-image.
Thx
fre 10 jan. 2025 kl. 20:38 skrev Philip Helger ***@***.***>:
… Okay, in the case I suggest you look at the source Docker files from
https://github.com/phax/phoss-smp/tree/master/docker#building-docker-images
and just change the second last line
COPY --from=build /smp $CATALINA_HOME/webapps/ROOT
to the context path you need, as in
COPY --from=build /smp $CATALINA_HOME/webapps/smp
hth
—
Reply to this email directly, view it on GitHub
<#305 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOQLOJTA4233NCCLHX7CWL2KAOVHAVCNFSM6AAAAABU6MSOOWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBQGE4TAMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Okay, in the case I suggest you look at the source Docker files from https://github.com/phax/phoss-smp/tree/master/docker#building-docker-images and just change the second last line
to the context path you need, as in
hth