mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-11-21 15:10:25 +00:00
3f067b1f92
Missing Brotli, proxy server not start after restart
17 lines
707 B
Bash
Executable file
17 lines
707 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
export LANG=C.UTF-8
|
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
|
|
# install all required packages
|
|
DEBIAN_FRONTEND=noninteractive apt-get update
|
|
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y bash-completion bind9 ca-certificates coturn curl git gnupg haveged iptables libnginx-mod-stream libnginx-mod-http-brotli-filter libsasl2-modules logrotate lsb-release nano nginx openssl postfix postfix-mysql postfix-mta-sts-resolver rng-tools5 vim wget wireguard wireguard-tools
|
|
|
|
# dhparams
|
|
for file in /etc/nginx/dh4096.pem; do
|
|
if [ ! -e "$file" ]; then
|
|
openssl dhparam -out "$file" 4096
|
|
fi
|
|
done
|
|
|
|
rm -f /etc/nginx/sites-enabled/default
|