Skip to content

Commit

Permalink
Add example config files.
Browse files Browse the repository at this point in the history
These example configuration files should provide a good start on how to
configure passfilt.
  • Loading branch information
hosom committed May 14, 2018
1 parent 0faeeca commit dfff799
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions passfilt-server/config/passfilt.service.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Password filtering daemon
After=network.target

[Service]
Type=simple
User=www-data
WorkingDirectory=/opt/passfilt
RuntimeDirectory=passfilt
ExecStart=/opt/passfilt/bin/passfilt
Restart=on-failure

[Install]
WantedBy=multi-user.target
14 changes: 14 additions & 0 deletions passfilt-server/config/sites-available-passfilt.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 0.0.0.0:443;
server_name passfilt.local;

ssl_certificate /etc/nginx/cert.crt;
ssl_certificate_key /etc/nginx/cert.key;

ssl on;

location / {
proxy_pass http://unix:/var/run/passfilt/passfilt.socket:/;
proxy_pass_request_headers on;
}
}

0 comments on commit dfff799

Please sign in to comment.