Skip to content

Commit c1d0adf

Browse files
authored
Merge pull request #216 from freinold/feat-ipv6-support
feat: ipv6 support by default
2 parents b7d5a8c + e3859cc commit c1d0adf

File tree

11 files changed

+31
-17
lines changed

11 files changed

+31
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ uv run main.py --help
205205
| `--default-entities` | Default entities to detect | `['person', 'organization', 'location', 'date']` |
206206
| `--default-threshold` | Default detection threshold | `0.5` |
207207
| `--api-key` | API key for authentication (if set, required in requests) | `null` |
208-
| `--host` | Host address | `0.0.0.0` |
208+
| `--host` | Host address | `""` (bind to all interfaces) |
209209
| `--port` | Port | `8080` |
210210
| `--metrics-enabled` | Enable Prometheus metrics endpoint | `True` |
211211
| `--metrics-port` | Port for Prometheus metrics endpoint | `9090` |

cpu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ USER appuser
8282
# Reset the entrypoint, don't invoke `uv`
8383
ENTRYPOINT ["python", "main.py"]
8484

85-
CMD ["--host", "0.0.0.0", "--port", "8080"]
85+
CMD ["--host", "", "--port", "8080"]

example_configs/general.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ default_entities:
99
- location
1010
- date
1111
api_key: null
12-
host: "0.0.0.0"
12+
host: ""
1313
port: 8080

example_configs/general_onnx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ default_entities:
1111
- location
1212
- date
1313
api_key: null
14-
host: "0.0.0.0"
14+
host: ""
1515
port: 8080

example_configs/general_onnx_quantized.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ default_entities:
1111
- location
1212
- date
1313
api_key: null
14-
host: "0.0.0.0"
14+
host: ""
1515
port: 8080

example_configs/medical.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ default_entities:
2222
- treatment
2323
- virus
2424
api_key: null
25-
host: "0.0.0.0"
25+
host: ""
2626
port: 8080

example_configs/pii+phi_quantized.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ default_entities:
4242
- treatment
4343
- virus
4444
api_key: null
45-
host: "0.0.0.0"
45+
host: ""
4646
port: 8080

example_configs/pii.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ default_entities:
2828
- vehicle identification number
2929
- zip code
3030
api_key: null
31-
host: "0.0.0.0"
31+
host: ""
3232
port: 8080

gliner_api/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Config(BaseSettings):
3838
description="API key for authentication; if provided, each request needs to include it.",
3939
)
4040
host: str = Field(
41-
default="0.0.0.0",
41+
default="",
4242
description="The host address for serving the API.",
4343
)
4444
port: int = Field(

gpu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ USER appuser
9494
# Reset the entrypoint, don't invoke `uv`
9595
ENTRYPOINT ["python", "main.py"]
9696

97-
CMD ["--host", "0.0.0.0", "--port", "8080"]
97+
CMD ["--host", "", "--port", "8080"]

0 commit comments

Comments
 (0)