playemulator.io-cache/Makefile
2024-07-26 17:31:17 +03:00

31 lines
679 B
Makefile

all:
echo OK
install-dependencies:
apt install -y nginx git make bash-completion
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