mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
housekeep(docker): remove configuration regexes in the nginx service
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
a1e547c057
commit
c7feecd4b8
1 changed files with 0 additions and 11 deletions
|
@ -11,17 +11,6 @@ KEY=/cache/production.key.pem
|
|||
DEST_CERT=/etc/ssl/certs/web.cert.pem
|
||||
DEST_KEY=/etc/ssl/private/web.key.pem
|
||||
|
||||
# Setup a config for our mysql db.
|
||||
cp -vf conf/config.dev conf/config
|
||||
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
|
||||
sed -ri 's/^(host) = .+/\1 = mariadb/' conf/config
|
||||
sed -ri 's/^(user) = .+/\1 = aur/' conf/config
|
||||
sed -ri 's/^;?(password) = .+/\1 = aur/' conf/config
|
||||
|
||||
# Setup http(s) stuff.
|
||||
sed -ri "s|^(aur_location) = .+|\1 = https://localhost:8444|" conf/config
|
||||
sed -ri 's/^(disable_http_login) = .+/\1 = 1/' conf/config
|
||||
|
||||
if [ -f "$CERT" ]; then
|
||||
cp -vf "$CERT" "$DEST_CERT"
|
||||
cp -vf "$KEY" "$DEST_KEY"
|
||||
|
|
Loading…
Add table
Reference in a new issue