Skip to content

Commit a2cd992

Browse files
authored
145-crashes-upon-boot-and-for-some-reason-tries-loading-caddy-stuff-im-not-using-caddy
* removed unused test docker profiles, changed default docker port * updated readme
1 parent a6e53ba commit a2cd992

File tree

8 files changed

+9
-192
lines changed

8 files changed

+9
-192
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you are using docker, you can install `headscale` alongside `headscale-ui`, l
1313
version: '3.5'
1414
services:
1515
headscale:
16-
image: headscale/headscale:latest
16+
image: headscale/headscale:stable
1717
container_name: headscale
1818
volumes:
1919
- ./container-config:/etc/headscale
@@ -27,7 +27,8 @@ services:
2727
restart: unless-stopped
2828
container_name: headscale-ui
2929
# ports:
30-
# - 9443:443
30+
# - 8443:8443
31+
# - 8080:8080
3132
```
3233

3334
Headscale UI serves on port 443 and uses a self signed cert by default. You will need to add a `config.yaml` file under your `container-config` folder so that `headscale` has all of the required settings declared. An example from the official `headscale` repo is [here](https://github.com/juanfont/headscale/blob/main/config-example.yaml).
@@ -36,19 +37,14 @@ Headscale UI serves on port 443 and uses a self signed cert by default. You will
3637
The docker container lets you set the following settings:
3738
| Variable | Description | Example |
3839
|----|----|----|
39-
| HTTP_PORT | Sets the HTTP port to an alternate value | `80` |
40-
| HTTPS_PORT | Sets the HTTPS port to an alternate value | `443` |
40+
| HTTP_PORT | Sets the HTTP port to an alternate value | `8080` |
41+
| HTTPS_PORT | Sets the HTTPS port to an alternate value | `8443` |
4142

4243
### Proxy Settings
4344
You will need a reverse proxy to install `headscale-ui` on your domain. Here is an example [Caddy Config](https://caddyserver.com/) to achieve this:
4445
```
4546
https://hs.yourdomain.com.au {
46-
reverse_proxy /web* https://headscale-ui {
47-
transport http {
48-
tls_insecure_skip_verify
49-
}
50-
}
51-
47+
reverse_proxy /web* http://headscale-ui:8080
5248
reverse_proxy * http://headscale:8080
5349
}
5450
@@ -92,6 +88,7 @@ See [Other Configurations](/documentation/configuration.md) for further proxy ex
9288
The following versions correspond to the appropriate headscale version
9389
| Headscale Version | HS-UI Version |
9490
|-------------------|---------------|
91+
| 23+ | 2024-10-01+ |
9592
| 19+ | 2023-01-30+ |
9693
| <19 | <2023-01-30 |
9794

docker/production/dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ ENV PROJECT_NAME="headscale-ui"
3737
# URL for the github/git location
3838
ENV PROJECT_URL="https://github.com/gurucomputing/headscale-ui"
3939
# Ports that caddy will run on
40-
ENV HTTP_PORT="80"
41-
ENV HTTPS_PORT="443"
40+
ENV HTTP_PORT="8080"
41+
ENV HTTPS_PORT="8443"
4242

4343
# Production Web Server port. Runs a self signed SSL certificate
4444
EXPOSE 443

docker/test/test-server/Caddyfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker/test/test-server/docker-compose.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

docker/test/test-server/dockerfile

Lines changed: 0 additions & 27 deletions
This file was deleted.

docker/test/test-server/scripts/1-image-build.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker/test/test-server/scripts/2-initialise.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

docker/test/test-workers/docker-compose.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)