Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def testkey():
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))
#return template('web_asset_store.xml', host="%s:%d" % (settings.SERVER_NAME, settings.SERVER_PORT))
return template('web_asset_store.xml', host="%s" % (settings.SERVER_NAME))


@route('/')
Expand Down
10 changes: 5 additions & 5 deletions views/web_asset_store.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<urls>
<url type="read"><![CDATA[http://{{host}}/fileget]]></url>
<url type="write"><![CDATA[http://{{host}}/fileupload]]></url>
<url type="delete"><![CDATA[http://{{host}}/filedelete]]></url>
<url type="getmetadata"><![CDATA[http://{{host}}/getmetadata]]></url>
<url type="testkey">http://{{host}}/testkey</url>
<url type="read"><![CDATA[https://{{host}}/fileget]]></url>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we turn http/https into a setting?
(may be useful for local development and backward compatibility for legacy deployments)

<url type="write"><![CDATA[https://{{host}}/fileupload]]></url>
<url type="delete"><![CDATA[https://{{host}}/filedelete]]></url>
<url type="getmetadata"><![CDATA[https://{{host}}/getmetadata]]></url>
<url type="testkey">https://{{host}}/testkey</url>
</urls>