-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove most of the documentation in favor of a link to a new page on rsp.lsst.io. Display the WebDAV file server timeout in a more human-readable form.
- Loading branch information
Showing
4 changed files
with
71 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Bug fixes | ||
|
||
- Display the timeout in the `/files` documentation in a more human-readable format. | ||
|
||
### Other changes | ||
|
||
- Remove most of the `/files` documentation in favor of a link to [rsp.lsst.io](https://rsp.lsst.io/guides/notebooks/extfileaccess/webdav/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 26 additions & 62 deletions
88
controller/src/controller/templates/fileserver.html.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,28 @@ | ||
<html> | ||
<head> | ||
<title> | ||
User Fileserver Created | ||
</title> | ||
</head> | ||
</body> | ||
<h1> | ||
Your fileserver is ready. | ||
<h1> | ||
|
||
<h2> | ||
Access Token | ||
</h2> | ||
|
||
<p> If you do not have an access token, go to <a | ||
href="{{ base_url }}/auth/tokens">the Gafaelfawr tokens page</a> and press | ||
the "Create Token" button. </p> | ||
|
||
<p> | ||
Give that token a name, such as "fileserver", the "exec:notebook" scope, | ||
and a reasonable expiration duration, such as 1 month. | ||
</p> | ||
|
||
<p> | ||
Press "Create". | ||
</p> | ||
|
||
<p> | ||
Your token will be displayed. Copy this token and save it somewhere | ||
safe; you will never be able to view it from the tokens page again. | ||
</p> | ||
|
||
<h2> | ||
Using the Fileserver | ||
</h2> | ||
|
||
<p> | ||
To use the fileserver, you will need a WebDAV client of your choice. | ||
Mac and Windows have built-in WebDAV clients (this is "Connect to | ||
Server..." or "Map Network Drive..."), as do Gnome Nautilus and | ||
Konqueror for Linux. The open-source command-line client | ||
<a href="https://github.com/notroj/cadaver">cadaver</a> should build on | ||
almost any Unix-like system and will work. | ||
</p> | ||
|
||
<p> | ||
Connect to | ||
<a href="{{ base_url }}{{ path_prefix }}/{{ username }}">{{ base_url }}{{ path_prefix }}/{{ username }}</a> | ||
with your WebDAV client (for Konqueror, use "webdav" or "webdavs" rather | ||
than "http" or "https" as the protocol). Use the token you acquired | ||
earlier as the password. You can use any string for your username | ||
(since the token belongs to you, it identifies you), but "{{ username }}" | ||
would be both accurate and traditional. | ||
</p> | ||
|
||
<p> | ||
If you make no requests in {{ timeout | format_timedelta }}, the fileserver will shut | ||
down. If that occurs, simply go back to | ||
<a href="{{ base_url }}{{ path_prefix }}">{{ base_url }}{{ path_prefix }}</a> | ||
and a new fileserver will be created for you. | ||
</p> | ||
</body> | ||
<head> | ||
<title>File server is running</title> | ||
</head> | ||
<body> | ||
<h1>File server is running</h1> | ||
|
||
<p> | ||
Your WebDAV file server for username {{ username }} is running. The | ||
URL to enter into a WebDAV client is: | ||
</p> | ||
|
||
<pre>{{ base_url }}{{ path_prefix }}/{{ username }}</pre> | ||
|
||
<p> | ||
For instructions on how to use the file server, see | ||
<a href="https://rsp.lsst.io/guides/notebooks/extfileaccess/webdav/">the | ||
rsp.lsst.io documentation</a>. | ||
</p> | ||
|
||
<p> | ||
If you make no requests for {{ timeout | format_timedelta }}, the | ||
file server will shut down and you will need to return to | ||
<a href="{{ base_url }}{{ path_prefix }}">this page</a> to start it | ||
again. | ||
</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,28 @@ | ||
<html> | ||
<head> | ||
<title> | ||
User Fileserver Created | ||
</title> | ||
</head> | ||
</body> | ||
<h1> | ||
Your fileserver is ready. | ||
<h1> | ||
|
||
<h2> | ||
Access Token | ||
</h2> | ||
|
||
<p> If you do not have an access token, go to <a | ||
href="http://127.0.0.1:8080/auth/tokens">the Gafaelfawr tokens page</a> and press | ||
the "Create Token" button. </p> | ||
|
||
<p> | ||
Give that token a name, such as "fileserver", the "exec:notebook" scope, | ||
and a reasonable expiration duration, such as 1 month. | ||
</p> | ||
|
||
<p> | ||
Press "Create". | ||
</p> | ||
|
||
<p> | ||
Your token will be displayed. Copy this token and save it somewhere | ||
safe; you will never be able to view it from the tokens page again. | ||
</p> | ||
|
||
<h2> | ||
Using the Fileserver | ||
</h2> | ||
|
||
<p> | ||
To use the fileserver, you will need a WebDAV client of your choice. | ||
Mac and Windows have built-in WebDAV clients (this is "Connect to | ||
Server..." or "Map Network Drive..."), as do Gnome Nautilus and | ||
Konqueror for Linux. The open-source command-line client | ||
<a href="https://github.com/notroj/cadaver">cadaver</a> should build on | ||
almost any Unix-like system and will work. | ||
</p> | ||
|
||
<p> | ||
Connect to | ||
<a href="http://127.0.0.1:8080/files/rachel">http://127.0.0.1:8080/files/rachel</a> | ||
with your WebDAV client (for Konqueror, use "webdav" or "webdavs" rather | ||
than "http" or "https" as the protocol). Use the token you acquired | ||
earlier as the password. You can use any string for your username | ||
(since the token belongs to you, it identifies you), but "rachel" | ||
would be both accurate and traditional. | ||
</p> | ||
|
||
<p> | ||
If you make no requests in 1h, the fileserver will shut | ||
down. If that occurs, simply go back to | ||
<a href="http://127.0.0.1:8080/files">http://127.0.0.1:8080/files</a> | ||
and a new fileserver will be created for you. | ||
</p> | ||
</body> | ||
<head> | ||
<title>File server is running</title> | ||
</head> | ||
<body> | ||
<h1>File server is running</h1> | ||
|
||
<p> | ||
Your WebDAV file server for username rachel is running. The | ||
URL to enter into a WebDAV client is: | ||
</p> | ||
|
||
<pre>http://127.0.0.1:8080/files/rachel</pre> | ||
|
||
<p> | ||
For instructions on how to use the file server, see | ||
<a href="https://rsp.lsst.io/guides/notebooks/extfileaccess/webdav/">the | ||
rsp.lsst.io documentation</a>. | ||
</p> | ||
|
||
<p> | ||
If you make no requests for 1 hour, the | ||
file server will shut down and you will need to return to | ||
<a href="http://127.0.0.1:8080/files">this page</a> to start it | ||
again. | ||
</p> | ||
</body> | ||
</html> |