Add local nginx repository

This commit is contained in:
Disassembler 2019-06-02 11:30:53 +02:00
parent cd4591501f
commit b556ee3c30
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,8 @@
server {
listen [::]:80;
server_name repo.spotter.cz;
location / {
root /srv/build;
}
}

View File

@ -26,6 +26,11 @@ cp usr/bin/fix-apk /usr/bin/fix-apk
cp usr/bin/lxc-build /usr/bin/lxc-build
cp usr/bin/lxc-pack /usr/bin/lxc-pack
# Prepare local APK repository
cp etc/nginx/conf.d/apkrepo.conf /etc/nginx/conf.d/apkrepo.conf
echo "172.17.0.1 repo.spotter.cz" >>/etc/hosts
service nginx reload
# Supply abuild key
# echo '/srv/build/repokey.rsa' | abuild-keygen