Commit c177301101cf7bc74a970dac842914b067b95fd8

Authored by mik
1 parent 6cc9825732
Exists in master

add service and httpd conf

Showing 2 changed files with 47 additions and 0 deletions Side-by-side Diff

devlolhackerspaceapi.service
  1 +[Unit]
  2 +Description=mqtt to hackerspace @devlol
  3 +
  4 +[Service]
  5 +Type=simple
  6 +ExecStart=/opt/devlolhackerspaceapi.py
  7 +Restart=always
  8 +RestartSec=15
  9 +
  10 +[Install]
  11 +WantedBy=multi-user.target
  1 +<VirtualHost *:80>
  2 + ServerAdmin webmaster@devlol.org
  3 + ServerName status-devlol.arcade.servus.at
  4 +
  5 + DocumentRoot /var/www/status
  6 +
  7 + #WSGIScriptAlias /hackerspaceapi/ /var/www/status/application/devlolhackerspaceapi.py
  8 + WSGIScriptAlias /hackerspaceapi /var/www/status/application/devlolstatus.wsgi
  9 +
  10 + <Directory /var/www/status/application/>
  11 + Order allow,deny
  12 + Allow from all
  13 + </Directory>
  14 +
  15 +
  16 + <Directory />
  17 + Options FollowSymLinks
  18 + AllowOverride None
  19 + </Directory>
  20 + <Directory /var/www/status>
  21 + Options Indexes FollowSymLinks MultiViews
  22 + AllowOverride None
  23 + Order allow,deny
  24 + allow from all
  25 + </Directory>
  26 + php_admin_value open_basedir /var/www/status:/usr/share/php5:/var/tmp
  27 +
  28 + LogFormat "%h %{X-Forwarded-For}i %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" proxy
  29 + CustomLog ${APACHE_LOG_DIR}/status-access.log proxy
  30 + ErrorLog ${APACHE_LOG_DIR}/status-error.log
  31 +
  32 + # Possible values include: debug, info, notice, warn, error, crit,
  33 + # alert, emerg.
  34 + LogLevel warn
  35 +</VirtualHost>