2020-01-21 05:24:45 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2022-05-26 03:49:09 +02:00
|
|
|
apt-get install -y --no-install-recommends nginx nginx-common nginx-extras openssl
|
2020-01-21 05:24:45 +01:00
|
|
|
|
|
|
|
# Install nginx and configuration
|
2022-03-09 00:00:03 +01:00
|
|
|
cp /bd_build/web/nginx/proxy_params.conf /etc/nginx/proxy_params
|
|
|
|
cp /bd_build/web/nginx/nginx.conf.tmpl /etc/nginx/nginx.conf.tmpl
|
|
|
|
cp /bd_build/web/nginx/azuracast.conf.tmpl /etc/nginx/azuracast.conf.tmpl
|
2020-01-21 05:24:45 +01:00
|
|
|
|
2020-02-21 19:48:43 +01:00
|
|
|
mkdir -p /etc/nginx/azuracast.conf.d/
|
|
|
|
|
2020-01-21 05:24:45 +01:00
|
|
|
# Create nginx temp dirs
|
2022-01-24 14:11:34 +01:00
|
|
|
mkdir -p /tmp/app_nginx_client /tmp/app_fastcgi_temp
|
|
|
|
touch /tmp/app_nginx_client/.tmpreaper
|
|
|
|
touch /tmp/app_fastcgi_temp/.tmpreaper
|
|
|
|
chmod -R 777 /tmp/app_*
|