Browse Source

Add example apache and systemd config files

add-test-db-and-override
Blaine Motsinger 1 year ago
parent
commit
04110a9621
  1. 3
      app/apache.conf.example
  2. 19
      app/pasteburn.service.example

3
app/apache.conf.example

@ -0,0 +1,3 @@
# add to the apache vhost to proxy
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/

19
app/pasteburn.service.example

@ -0,0 +1,19 @@
[Service]
RuntimeDirectory=pasteburn
ExecStart=/path/to/pasteburn/perl5/bin/starman --daemonize -l 127.0.0.1:5000 --pid /var/run/pasteburn/pasteburn.pid --error-log /var/log/pasteburn/starman-api.log /path/to/pasteburn/git/pasteburn/app/app.psgi
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=pasteburn
Type=forking
User=pasteburn
Group=pasteburn
Environment=DANCER_CONFDIR=/path/to/pasteburn/git/pasteburn/app/ DANCER_ENVIRONMENT=production PERL5LIB=/path/to/pasteburn/perl5/lib/perl5:/path/to/pasteburn/git/pasteburn/lib:$PERL5LIB
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save