aboutsummaryrefslogtreecommitdiffstats
path: root/roles/web/files
diff options
context:
space:
mode:
authorKristian <kly@gondul-tg17.kly.no>2017-04-19 17:23:15 +0200
committerKristian <kly@gondul-tg17.kly.no>2017-04-19 17:23:15 +0200
commit2b8e5c971c1c1b80775b6711da5cce3d1eb4cf9d (patch)
treee60f5a4a639af22e769fe794675b6fc205b53e65 /roles/web/files
parent64b95ebfa7a09cab8815b26a199ca15b4c5e89ca (diff)
build: First baby steps to "bare metal" deployment
Deals with API and most of the DB so far
Diffstat (limited to 'roles/web/files')
-rw-r--r--roles/web/files/gondul.conf39
1 files changed, 39 insertions, 0 deletions
diff --git a/roles/web/files/gondul.conf b/roles/web/files/gondul.conf
new file mode 100644
index 0000000..0cdbff7
--- /dev/null
+++ b/roles/web/files/gondul.conf
@@ -0,0 +1,39 @@
+<VirtualHost *:80>
+ ServerAdmin lol@example.com
+ ServerName gondul.gathering.org
+ ServerAlias gondul.gathering.org
+
+ DocumentRoot /opt/gondul/web
+ ScriptAlias /api/write/ /opt/gondul/web/api/write/
+ ScriptAlias /api/read/ /opt/gondul/web/api/read/
+ ScriptAlias /api/public/ /opt/gondul/web/api/public/
+ <Directory "/opt/gondul/web/api/write/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ </Directory>
+ <Directory "/opt/gondul/web/api/read/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ </Directory>
+ <Directory "/opt/gondul/web/api/public/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
+ Require all granted
+ </Directory>
+ <Directory "/opt/gondul/web">
+ AllowOverride None
+ Options Indexes FollowSymLinks MultiViews
+ AddDefaultCharset UTF-8
+ Require all granted
+ </Directory>
+
+ ErrorLog /var/log/apache2/error-nms.example.com.log
+
+ # Possible values include: debug, info, notice, warn, error, crit,
+ # alert, emerg.
+ LogLevel warn
+
+ CustomLog /var/log/apache2/access-nms.example.com.log combined
+ ServerSignature On
+
+</VirtualHost>