Open obediobadiah opened 1 year ago
Hi @obediobadiah in the case you have a JAVA_OPTS
variable named -DPRINT_BASE_URL=http://mydomainname/geoserver/pdf
that one takes precedence over the config.yaml
file
Thanks for your comment @afabiani, so do I need to delete that variable?
@afabiani I unset the JAVA_OPTS
variable but the issue still persists. Can you please help
I would set that variable with the correct public url instead
I set the GEOSERVER_JAVA_OPTS
variable to the correct url already but still the same
Everything is working perfectly on the public URL exept the pdf URL fetched in create.json file...
Uhm that's very strange... can you make a last try completely remove the line proxyBaseUrl
form the config.yaml
?
Also please double check the you have correctly set the proxyBaseUrl
property of GeoServer from the global.xml
file.
Hello @afabiani, I deleted the proxyBaseUrl
from the config.yaml
but the issue still persist...
proxyBaseUrl should be setup not deleted !
I installed Geonode and Geoserver perfectly. And I configured nginx proxy to run on https
So far it worked:
The print module configuration file in GEOSERVER_DATA_DIR/printing/config.yaml is created and I can see access the
https://mydomainname/geoserver/pdf/info.json
And I can see printURL:
https://mydomainname/geoserver/pdf/print.pdf
and createURL:https://mydomainname/geoserver/pdf/create.json Parameters in info.json
Here is my config.yaml
Here is the NGINX Configuration:
But when I generate the pdf the getURL parameter from create.json url comes with HTTP instead of HTTPS
http://mydomainname/geoserver/pdf/18439792855979453446.pdf.printout
Please help me to get the pdf URL with the HTTPS schema. Thanks