mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 17:28:53 +02:00
fix timezone by adding tz_data package, dns lookup workaround, panel fix
This commit is contained in:
@@ -2,7 +2,7 @@ FROM alpine:latest
|
|||||||
|
|
||||||
LABEL maintainer="yusing@6uo.me"
|
LABEL maintainer="yusing@6uo.me"
|
||||||
|
|
||||||
RUN apk add --no-cache bash
|
RUN apk add --no-cache bash tzdata
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
COPY bin/go-proxy entrypoint.sh /app/
|
COPY bin/go-proxy entrypoint.sh /app/
|
||||||
COPY templates/ /app/templates
|
COPY templates/ /app/templates
|
||||||
|
|||||||
BIN
bin/go-proxy
BIN
bin/go-proxy
Binary file not shown.
@@ -21,6 +21,8 @@ services:
|
|||||||
- /path/to/privkey.pem:/certs/priv.key:ro
|
- /path/to/privkey.pem:/certs/priv.key:ro
|
||||||
- ./log:/app/log # path to logs
|
- ./log:/app/log # path to logs
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
dns:
|
||||||
|
- 127.0.0.1 # workaround for "lookup: no such host"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- host.docker.internal:host-gateway # required if you have containers in `host` network_mode
|
- host.docker.internal:host-gateway # required if you have containers in `host` network_mode
|
||||||
logging:
|
logging:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ func main() {
|
|||||||
var err error
|
var err error
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
time.Now().Zone()
|
||||||
|
|
||||||
dockerClient, err = client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
|
dockerClient, err = client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -72,8 +72,8 @@
|
|||||||
function updateHealthStatus() {
|
function updateHealthStatus() {
|
||||||
let rows = document.querySelectorAll('tbody tr');
|
let rows = document.querySelectorAll('tbody tr');
|
||||||
rows.forEach(row => {
|
rows.forEach(row => {
|
||||||
let url = row.cells[3].textContent;
|
let url = row.querySelector('#url-cell').textContent;
|
||||||
let cell = row.cells[4]; // Health column cell
|
let cell = row.querySelector('#health-cell'); // Health column cell
|
||||||
checkHealth(url, cell);
|
checkHealth(url, cell);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -113,8 +113,8 @@
|
|||||||
<td>{{$alias}}</td>
|
<td>{{$alias}}</td>
|
||||||
<td>{{$path}}</td>
|
<td>{{$path}}</td>
|
||||||
<td>{{$route.PathMode}}</td>
|
<td>{{$route.PathMode}}</td>
|
||||||
<td>{{$route.Url.String}}</td>
|
<td id="url-cell">{{$route.Url.String}}</td>
|
||||||
<td class="align-middle">
|
<td class="align-middle" id="health-cell">
|
||||||
<div class="health-circle"></div>
|
<div class="health-circle"></div>
|
||||||
</td> <!-- Health column -->
|
</td> <!-- Health column -->
|
||||||
</tr>
|
</tr>
|
||||||
@@ -140,8 +140,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{$route.Alias}}</td>
|
<td>{{$route.Alias}}</td>
|
||||||
<td>{{$route.ListeningUrl}}</td>
|
<td>{{$route.ListeningUrl}}</td>
|
||||||
<td>{{$route.TargetUrl}}</td>
|
<td id="url-cell">{{$route.TargetUrl}}</td>
|
||||||
<td class="align-middle">
|
<td class="align-middle" id="health-cell">
|
||||||
<div class="health-circle"></div>
|
<div class="health-circle"></div>
|
||||||
</td> <!-- Health column -->
|
</td> <!-- Health column -->
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user