add flags for bind addresses
parent
9ef2f7dbd1
commit
c49f109c01
|
|
@ -14,8 +14,11 @@ COPY ./config.json /opt/gopherhole/config.json
|
|||
|
||||
ENV GOPHERHOLE_BIND_ADDRESS 127.0.0.1
|
||||
|
||||
RUN apt-get update && apt-get install -y ca-certificates && apt-get clean
|
||||
|
||||
WORKDIR /opt/gopherhole
|
||||
|
||||
EXPOSE 53/udp 53/tcp 80/tcp
|
||||
|
||||
ENTRYPOINT /opt/gopherhole/gopherhole
|
||||
ENTRYPOINT ["/opt/gopherhole/gopherhole"]
|
||||
CMD ["-bind-http=0.0.0.0", "-bind-dns=0.0.0.0"]
|
||||
|
|
@ -22,9 +22,11 @@ type BlocklistManager interface {
|
|||
func NewDomainBlacklist(blocklistURLs []string) (BlocklistManager, error) {
|
||||
l := log.New(os.Stdout, "[Blocklist Manager] ", log.LUTC|log.Lshortfile)
|
||||
bm := &memoryBlocklistManager{blocklistURLs: blocklistURLs, Logger: l}
|
||||
if err := bm.Reload(context.Background()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
go bm.Reload(context.Background())
|
||||
|
||||
// if err := bm.Reload(context.Background()); err != nil {
|
||||
// return nil, err
|
||||
// }
|
||||
|
||||
return bm, nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ spec:
|
|||
value: 0.0.0.0
|
||||
stdin: true
|
||||
tty: true
|
||||
args:
|
||||
- -bind-dns=0.0.0.0
|
||||
- -bind-http=0.0.0.0
|
||||
resources:
|
||||
limits:
|
||||
cpu: "512m"
|
||||
|
|
|
|||
Loading…
Reference in New Issue