feat: CI: setup nginx to load custom configuration files and create dummy website for testing

This commit is contained in:
Aravinth Manivannan 2022-12-12 19:38:32 +05:30
parent e7068cfc7c
commit ad0c7ae94d
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -4,6 +4,10 @@ pipeline:
commands:
- apt update
- apt-get install -y --no-install-recommends nginx sudo
- mkdir -p /etc/librepages/nginx/sites-available
- mkdir -p /etc/librepages/nginx/sites-enabled/
- sed -i 's/include \/etc\/nginx\/sites-enabled/include \/etc\/librepages\/nginx\/sites-enabled/' /etc/nginx/nginx.conf
- mkdir /var/www/website/ && echo "Hello Librepages" > /var/www/website/index.html
# nginx_le_bind runs this command.
# Testing beforehand to ensure it is setup properly
- sudo nginx -t