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

Add an environment configuration option to make web_asset_store.xml use HTTPS #25

Open
grantfitzsimmons opened this issue Feb 7, 2024 · 0 comments

Comments

@grantfitzsimmons
Copy link
Contributor

https://github.com/specify/web-asset-server/blob/master/views/web_asset_store.xml

This would switch HTTP to HTTPS

web-asset-server/server.py

Lines 356 to 361 in ae6c660

@route('/web_asset_store.xml')
@include_timestamp
def web_asset_store():
"""Serve an XML description of the URLs available here."""
response.content_type = 'text/xml; charset=utf-8'
return template('web_asset_store.xml', host="%s:%d" % (settings.SERVER_NAME, settings.SERVER_PORT))

Import from the environment variables

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

No branches or pull requests

1 participant