-
Notifications
You must be signed in to change notification settings - Fork 92
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
Confirming Implementation of URLBASE and BASEPATH? #119
Comments
Related to #109. I was able to confirm that the behavior of URLBASE and BASEPATH configuration parameters behave differently between |
Thanks, @brettpalmberg . I agree that having no redundancy between |
Excellent, thanks for your response @dr-jts! Feel free to @ me if there's anything I can contribute. I wasn't familiar enough with the codebase just yet to be comfortable jumping-in :) |
Can these environment variables be passed to the docker container? |
Yes! Note that a |
So in a docker env file would I? or SERVER_URLBASE=https://vm103.athena.bcit.ca/pgfs |
The former
…On Mon, Nov 7, 2022 at 12:29 PM Robert Hewlett ***@***.***> wrote:
So in a docker env file would I?
PGFS_SERVER_URLBASE=https://vm103.athena.bcit.ca/pgfs
PGFS_SERVER_BASEPATH=/pgfs
or
SERVER_URLBASE=https://vm103.athena.bcit.ca/pgfs
SERVER_BASEPATH=/pgfs
—
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3ZWY74JROPSR34N3JJWLWHFRENANCNFSM55I2WA2Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
So, I have nginx as the reverse proxy for https location /pgfs/ {
proxy_pass http://localhost:9000/ ;
} Then https://vm103.athena.bcit.ca/pgfs is a 404 Then from the links on the collections page: The links are missing the second /pgfs/ I will try some things ... |
This worked for me: PGFS_SERVER_URLBASE=https://vm103.athena.bcit.ca/pgfs Home links work too Thank you! |
Question / Bug?
Hosting pg_featureserv at a non-root path required including the path parameter (e.g.
/features
) in both theUrlBase
andBasePath
config params to get URLs and JSON values to form correctly. It felt redundant to have to include the BasePath in both variables, but wanted to confirm whether this is the intended behavior before calling anything a bug.Example (this works)
To host pg_featureserv at
localhost:9000/features/
for example, the following environment variables are required to make all .html links and JSON-built urls work correctly:What I expected (this does not work)
Thank you.
The text was updated successfully, but these errors were encountered: