feat: CI: setup nginx to load custom configuration files and create dummy website for testing
This commit is contained in:
parent
e7068cfc7c
commit
ad0c7ae94d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue