README.nginx.exec-shell-script: some minor adjustments.
This commit is contained in:
parent
c1d6a25a1b
commit
c71d960f43
@ -6,7 +6,7 @@
|
||||
# see:
|
||||
# https://stackoverflow.com/questions/22891148/nginx-how-to-run-a-shell-script-on-every-request
|
||||
|
||||
WEBSITE_NAME="o30.oopen.de"
|
||||
WEBSITE_NAME="rec.video.faire-mobilitaet.de"
|
||||
DOCUMENT_ROOT="/var/www/$WEBSITE_NAME"
|
||||
|
||||
# Install 'fcgiwrap'
|
||||
@ -41,6 +41,8 @@ echo ' <br /> <br />
|
||||
echo "</pre></body></html>"
|
||||
EOF
|
||||
|
||||
chmod 755 ${DOCUMENT_ROOT}/enable-recording.sh
|
||||
|
||||
|
||||
|
||||
# Ceate script disable-recording.sh
|
||||
@ -65,11 +67,12 @@ echo ' <br /> <br />
|
||||
echo "</pre></body></html>"
|
||||
EOF
|
||||
|
||||
chmod 755 ${DOCUMENT_ROOT}/disable-recording.sh
|
||||
|
||||
|
||||
# Create NGINX configuration for site
|
||||
#
|
||||
cat <<EOF >> "/etc/nginx/sites-available/${WEBSITE_NAME}.conf"
|
||||
cat <<EOF >> "/root/${WEBSITE_NAME}.conf"
|
||||
cat <<EOF > "/etc/nginx/sites-available/${WEBSITE_NAME}.conf"
|
||||
# - ${WEBSITE_NAME}
|
||||
|
||||
server {
|
||||
@ -85,6 +88,11 @@ server {
|
||||
listen [::]:443 ssl http2;
|
||||
server_name ${WEBSITE_NAME};
|
||||
|
||||
root /var/www/${WEBSITE_NAME};
|
||||
|
||||
auth_basic "Video Admin Area";
|
||||
auth_basic_user_file conf.d/.htpasswd-rec-video;
|
||||
|
||||
# Include location directive for Let's Encrypt ACME Challenge
|
||||
#
|
||||
# Needed for (automated) updating certificate
|
||||
@ -124,8 +132,6 @@ server {
|
||||
ssl_certificate_key /var/lib/dehydrated/certs/${WEBSITE_NAME}/privkey.pem;
|
||||
ssl_trusted_certificate /var/lib/dehydrated/certs/${WEBSITE_NAME}/chain.pem;
|
||||
|
||||
root /var/www/o30.oopen.de;
|
||||
|
||||
# ssi on with javascript for multidomain variables in config.js
|
||||
ssi on;
|
||||
ssi_types application/x-javascript application/javascript;
|
||||
@ -147,3 +153,5 @@ server {
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
ln -s ../sites-available/${WEBSITE_NAME}.conf /etc/nginx/sites-enabled/${WEBSITE_NAME}
|
||||
|
Loading…
Reference in New Issue
Block a user