This commit is contained in:
William Mantly 2021-01-23 01:19:53 -05:00
parent 2238339553
commit 6cc1f8efda
Signed by: wmantly
GPG Key ID: 186A8370EFF937CA
6 changed files with 1110 additions and 0 deletions

11
frontend/index.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Worked!</title>
</head>
<body>
<center>
<h1>If you see this, it worked!</h1>
</center>
</body>
</html>

22
ops/apache2/vhost.conf Normal file
View File

@ -0,0 +1,22 @@
<VirtualHost *:80>
# ServerAdmin webmester@bytedev.co
ServerName {{domain}}
<IfModule mod_expires.c>
<FilesMatch "\.(jpe?g|png|gif|js|css)$">
ExpiresActive On
ExpiresDefault "access plus 1 week"
</FilesMatch>
</IfModule>
DocumentRoot "{{workingPath}}/frontend"
<Directory "{{workingPath}}/frontend">
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</Directory>
</VirtualHost>

1061
ops/lib/mo Executable file

File diff suppressed because it is too large Load Diff

6
ops/provision/deploy.sh Executable file
View File

@ -0,0 +1,6 @@
source ../lib/mo
apt install -y apache2
apache_vhost="$(cat ops/apache2/vhost.conf)"
echo "$apache_vhost" | mo > /etc/apache2/sites-enabled/000-default.conf

8
ops/provision/test.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
source ../lib/mo
apt install -y apache2
apache_vhost="$(cat ops/apache2/vhost.conf)"
echo "$apache_vhost" | mo > /etc/apache2/sites-enabled/000-default.conf

2
ops/provision/vals Normal file
View File

@ -0,0 +1,2 @@
name="Billy"
age="22"