Closed njestes closed 7 years ago
If the images are within the same folder as the app, you could just use relative references. Otherwise, you could use the absolute path including the FQDN (which would route the traffic back thru Toad). Or, you could use the default S3 URL and use S3's SSL cert, for example:
https://s3.amazonaws.com/nawqatrends.wim.usgs.gov/nawqaimages/fwsLogo.png
I think the app is located on Toad, so the we'd be hosting them on Toad going that way (the same folder as the app way, that is). So, I think I'll try out that last URL structure you have there. I'll let you know...
Oh, the app is on Toad but the images are on S3? Sorry, I didn't realize that. In that case, we could just put a simple reverse proxy rule in the nawqatrends "website" in IIS. Easy peasy.
I just implemented this structure URL ->
https://s3.amazonaws.com/nawqatrends.wim.usgs.gov/nawqaimages/fwsLogo.png
and it seems good to go. Would there be a benefit to using the reverse proxy instead or is it six of one, half dozen of the other?
I'm fine with either. The only potential negative I see with using the direct S3 URL is that someone might see it in your source code. But totally your call.
The images are also meant to be clicked and opened in new tabs, so they would see it there. I don't have any problem with that, I don't think. But I might not be seeing all the possible issues with that.
Maybe it's just a "branding" o r"professional/polished" thing... do we want them to know we're using S3, or just the app's proper URL? Maybe something to ask the whole group.
I'm good with the reverse proxy thing. Set 'er up and see how it works?
Reverse proxy is enabled.
So, I'm looking for this: https://s3.amazonaws.com/nawqatrends.wim.usgs.gov/charts/Total%20Phosphorus_06741510/plotConcPred.png to convert to this: https://nawqatrends.wim.usgs.gov/charts/Total%20Phosphorus_06741510/plotConcPred.png
Seems like it's not quite there, though the https is happy, it's returning a 404
it's a 'charts' 'directory' at the root of the bucket
Oh sorry, I only set up the reverse proxy for /nawqaimages/. I just set one for /charts/ too. Try it again.
Closer, I think. Now, I'm getting the wim error page when I try this:
https://nawqatrends.wim.usgs.gov/charts/Total%20Phosphorus_06741510/plotFluxPred.png
This still works:
Might just be a refresh, still updating thing. This works:
I think that space might be screwing things up. Do you have an example without a space?
Bah, I give up. I can't figure out why the reverse proxy isn't working. Feel free to use the direct S3 URL. Sorry about the hold up.
cool. I'll code that up.
Another option:
Maybe we already have an https ready S3 bucket for these things. I can put the images there if need be.