2024-07-26 00:36:17 +03:00
|
|
|
all:
|
|
|
|
echo OK
|
|
|
|
|
2024-07-26 17:31:17 +03:00
|
|
|
install-dependencies:
|
|
|
|
apt install -y nginx git make bash-completion
|
|
|
|
|
2024-07-26 00:36:17 +03:00
|
|
|
install:
|
|
|
|
mkdir /srv/playemulator/data -p
|
|
|
|
chown www-data:www-data -R /srv/playemulator/data
|
|
|
|
cp -vf 0010-cache.conf /etc/nginx/sites-available/
|
|
|
|
cp -vf cache-dir.conf /etc/nginx/conf.d/
|
|
|
|
cd /etc/nginx/sites-enabled && ln -s ../sites-available/0010-cache.conf;true
|
|
|
|
|
|
|
|
install-cert:
|
|
|
|
mkdir /etc/ssl/local -p
|
|
|
|
cat ssl/cert.pem ssl/chain.pem > /etc/ssl/local/cache.chained.crt
|
|
|
|
cat ssl/key.pem > /etc/ssl/local/cache.key
|
|
|
|
|
|
|
|
start:
|
|
|
|
systemctl start nginx
|
|
|
|
reload:
|
|
|
|
systemctl reload nginx
|
|
|
|
restart: stop start
|
|
|
|
|
|
|
|
stop:
|
|
|
|
systemctl stop nginx
|
|
|
|
enable:
|
|
|
|
systemctl enable nginx
|
|
|
|
disable:
|
|
|
|
systemctl disable nginx
|