Tweaks to proxy config

This commit is contained in:
Roberto Alsina 2024-07-02 13:33:09 -03:00
parent d506a7250a
commit 9997cdaeaf
4 changed files with 8 additions and 6 deletions

View File

@ -25,4 +25,4 @@ COPY --from=build /home/app/bin/faaso-daemon /home/app/bin/faaso /usr/bin/
RUN mkdir /secrets
RUN echo "sarasa" > /secrets/sarlanga
CMD ["/usr/bin/multirun", "faaso-daemon", "tinyproxy -d -c tinyproxy.conf"]
CMD ["/usr/bin/multirun", "-v", "faaso-daemon", "tinyproxy -d -c tinyproxy.conf"]

View File

@ -3,7 +3,7 @@ build: shard.yml $(wildcard src/**/*cr)
proxy: build
docker build . -t faaso-proxy --no-cache
start-proxy:
docker run --network=faaso-net -v /var/run/docker.sock:/var/run/docker.sock -p 8888:8888 faaso-proxy
docker run --network=faaso-net -v /var/run/docker.sock:/var/run/docker.sock -v secrets:/home/app/secrets -p 8888:8888 faaso-proxy
.PHONY: build proxy-image start-proxy

View File

@ -30,7 +30,8 @@ module Proxy
funkos.sort!
config = %(
UserName nobody
User nobody
Group nogroup
Port 8888
Listen 0.0.0.0
Timeout 600

View File

@ -1,5 +1,6 @@
UserName nobody
User nobody
Group nogroup
LogLevel Info
Port 8888
Listen 0.0.0.0
Timeout 600
@ -7,4 +8,4 @@
ReverseOnly Yes
ReverseMagic Yes
ReversePath "/admin/" "http://127.0.0.1:3000/"
ReversePath "/faaso/hello/" "http://hello:3000/"
ReversePath "/faaso/hello/" "http://hello:3000/"