stash
This commit is contained in:
parent
8d96bc97c4
commit
ed04d98bf1
54 changed files with 661 additions and 1214 deletions
|
|
@ -1,14 +1 @@
|
|||
FROM nginx:bookworm
|
||||
|
||||
# snakeoil for localhost
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y openssl && \
|
||||
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048 && \
|
||||
openssl rsa -passin pass:x -in server.pass.key -out server.key && \
|
||||
rm server.pass.key && \
|
||||
openssl req -new -key server.key -out server.csr \
|
||||
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" && \
|
||||
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt &&\
|
||||
mv server.crt /etc/nginx/nginx.crt && \
|
||||
mv server.key /etc/nginx/nginx.key \
|
||||
|
|
|
|||
|
|
@ -72,6 +72,14 @@ services:
|
|||
- ./instance_a/dns.json:/var/www/dns.json:ro
|
||||
- ./instance_a/domains.json:/var/www/domains.json:ro
|
||||
- ./instance_a/userfiles:/var/www/userfiles:ro
|
||||
# A stable, CA-signed cert (see frontend/.local/make_localhost.sh) covering localhost plus
|
||||
# every loopback IP a dev proxy binds to below, instead of Dockerfile.proxy generating a
|
||||
# fresh throwaway self-signed one on every image build - that regenerated cert invalidated
|
||||
# any trust exception you'd added in your browser on the previous build. Trust
|
||||
# frontend/.local/RootCA.crt once (see docs/development.md) and it keeps working across
|
||||
# rebuilds.
|
||||
- ../../frontend/.local/localhost.crt:/etc/nginx/nginx.crt:ro
|
||||
- ../../frontend/.local/localhost.key:/etc/nginx/nginx.key:ro
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
- "127.0.0.3:5353:5353"
|
||||
|
|
@ -83,6 +91,8 @@ services:
|
|||
volumes:
|
||||
- ./instance_b/nginx-b.dev.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./instance_b/userfiles:/var/www/userfiles:ro
|
||||
- ../../frontend/.local/localhost.crt:/etc/nginx/nginx.crt:ro
|
||||
- ../../frontend/.local/localhost.key:/etc/nginx/nginx.key:ro
|
||||
ports:
|
||||
- "127.0.0.2:8080:8080"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue