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

Adding a complete example to clarify where to put the config files. #486

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
15 changes: 15 additions & 0 deletions docs/source/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,18 @@ projects on GitHub, such as:

Projects can also add the `jupyter-server-proxy` topic to the GitHub repository to make it more discoverable:
[https://github.com/topics/jupyter-server-proxy](https://github.com/topics/jupyter-server-proxy)

# Test the proxy setup

If you just want to test if the proxy config is correct you can put the following into `$HOME/.jupyter/jupyter_server_config.py`:
```python
import sys
c.ServerProxy.servers.update({
"pythonweb": {
"command": [sys.executable, "-m", "http.server", "{port}"],
"port": 9081,
"absolute_url": False
}
})
```
You should then get a new button in the launcher. Putting it into `/etc/jupyter/` will make it available to all users.