Browse Source

changed default port to 8080 for non-root statup on linux systems

Rodja Trappe 3 years ago
parent
commit
d6455bf330
2 changed files with 3 additions and 3 deletions
  1. 2 2
      README.md
  2. 1 1
      nicegui/config.py

+ 2 - 2
README.md

@@ -56,7 +56,7 @@ Full documentation can be found at [https://nicegui.io](https://nicegui.io).
 You can call `ui.run()` with optional arguments for some high-level configuration:
 
 - `host` (default: `'0.0.0.0'`)
-- `port` (default: `80`)
+- `port` (default: `8080`)
 - `title` (default: `'NiceGUI'`)
 - `favicon` (default: `'favicon.ico'`)
 - `reload`: automatically reload the ui on file changes (default: `True`)
@@ -69,7 +69,7 @@ You can call `ui.run()` with optional arguments for some high-level configuratio
 Use the [multi-arch docker image](https://hub.docker.com/repository/docker/zauberzeug/nicegui) for pain-free installation:
 
 ```bash
-docker run --rm -p 8888:80 -v $(pwd)/my_script.py:/app/main.py -it zauberzeug/nicegui:latest
+docker run --rm -p 8888:8080 -v $(pwd)/my_script.py:/app/main.py -it zauberzeug/nicegui:latest
 ```
 
 This will start the server at http://localhost:8888 with code from `my_script.py` within the current directory.

+ 1 - 1
nicegui/config.py

@@ -7,7 +7,7 @@ from . import globals
 class Config(BaseModel):
     # NOTE: should be in sync with ui.run arguments
     host: str = '0.0.0.0'
-    port: int = 80
+    port: int = 8080
     title: str = 'NiceGUI'
     favicon: str = 'favicon.ico'
     reload: bool = True