Skip to content
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

JSON indexing and WMS manager importing #3

Open
jeremydouglass opened this issue Jul 29, 2018 · 1 comment
Open

JSON indexing and WMS manager importing #3

jeremydouglass opened this issue Jul 29, 2018 · 1 comment

Comments

@jeremydouglass
Copy link
Contributor

One interesting feature of nginx is that autoindex module -- which automatically generates a directory listing view for folders without an index.html -- can be JSON-based indexes rather than HTML. It also has a JSONP mode with a callback.

http://nginx.org/en/docs/http/ngx_http_autoindex_module.html

This might be useful for the WMS manager / flask site checking the collector-data volume mount for available imports...?

Turning on indexing mode in one folder location or for the whole server is easy -- see for example this config:

...so it could be done in one subfolder of an nginx viewer that is also used for browsing dfrbrowser output --- or it could be its own separate viewer container.

@scottkleinman
Copy link

I'm not sure exactly what this does. Is it used to format the response to an HTTP request? If so, we could certainly use it to grab the contents of the folder where imports are staged. I switched from using requests to os.listdir() for this, but I think I left the earlier code in there, so it would be easy to re-implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants