mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix timezone by adding tz_data package, dns lookup workaround, panel fix
This commit is contained in:
parent
303a0cce02
commit
dc996f82c6
5 changed files with 10 additions and 7 deletions
|
@ -2,7 +2,7 @@ FROM alpine:latest
|
|||
|
||||
LABEL maintainer="yusing@6uo.me"
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
RUN apk add --no-cache bash tzdata
|
||||
RUN mkdir /app
|
||||
COPY bin/go-proxy entrypoint.sh /app/
|
||||
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
|
||||
- ./log:/app/log # path to logs
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
dns:
|
||||
- 127.0.0.1 # workaround for "lookup: no such host"
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway # required if you have containers in `host` network_mode
|
||||
logging:
|
||||
|
|
|
@ -17,6 +17,7 @@ func main() {
|
|||
var err error
|
||||
flag.Parse()
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
time.Now().Zone()
|
||||
|
||||
dockerClient, err = client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
|
||||
if err != nil {
|
||||
|
|
|
@ -72,8 +72,8 @@
|
|||
function updateHealthStatus() {
|
||||
let rows = document.querySelectorAll('tbody tr');
|
||||
rows.forEach(row => {
|
||||
let url = row.cells[3].textContent;
|
||||
let cell = row.cells[4]; // Health column cell
|
||||
let url = row.querySelector('#url-cell').textContent;
|
||||
let cell = row.querySelector('#health-cell'); // Health column cell
|
||||
checkHealth(url, cell);
|
||||
});
|
||||
}
|
||||
|
@ -113,8 +113,8 @@
|
|||
<td>{{$alias}}</td>
|
||||
<td>{{$path}}</td>
|
||||
<td>{{$route.PathMode}}</td>
|
||||
<td>{{$route.Url.String}}</td>
|
||||
<td class="align-middle">
|
||||
<td id="url-cell">{{$route.Url.String}}</td>
|
||||
<td class="align-middle" id="health-cell">
|
||||
<div class="health-circle"></div>
|
||||
</td> <!-- Health column -->
|
||||
</tr>
|
||||
|
@ -140,8 +140,8 @@
|
|||
<tr>
|
||||
<td>{{$route.Alias}}</td>
|
||||
<td>{{$route.ListeningUrl}}</td>
|
||||
<td>{{$route.TargetUrl}}</td>
|
||||
<td class="align-middle">
|
||||
<td id="url-cell">{{$route.TargetUrl}}</td>
|
||||
<td class="align-middle" id="health-cell">
|
||||
<div class="health-circle"></div>
|
||||
</td> <!-- Health column -->
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue