mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-11 16:32:59 +00:00
New: Every service now uses same image (kopano_base)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY default.conf start.sh /buildproxy/
|
||||
RUN chmod a+x /buildproxy/start.sh
|
||||
|
||||
CMD ["/buildproxy/start.sh"]
|
||||
@@ -0,0 +1,4 @@
|
||||
This image is simply for building the Kopano images. It allows building Kopano from repositories that need a serial key without
|
||||
exposing the serial key in the image metadata.
|
||||
|
||||
Never publish an image of this proxy as this will include your serial.
|
||||
@@ -0,0 +1,24 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
#charset koi8-r;
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# proxy_pass http://127.0.0.1;
|
||||
#}
|
||||
|
||||
location / {
|
||||
proxy_pass ${KOPANO_REPOSITORY_BASE_URL};
|
||||
proxy_set_header Authorization "Basic ${B64_CREDS}";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/ash
|
||||
|
||||
KOPANO_USER=serial
|
||||
|
||||
export KOPANO_REPOSITORY_BASE_URL="https://download.kopano.io/"
|
||||
|
||||
export B64_CREDS=$(echo "$KOPANO_USER:$KOPANO_SERIAL" | base64)
|
||||
|
||||
# inject the secrets into config file
|
||||
cat /buildproxy/default.conf | envsubst > /etc/nginx/conf.d/default.conf
|
||||
|
||||
# run reverse proxy
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user