Skip to content

Instantly share code, notes, and snippets.

@enykeev
Last active August 29, 2015 14:20
Show Gist options
  • Save enykeev/e0af262e4a34dcf463f1 to your computer and use it in GitHub Desktop.
Save enykeev/e0af262e4a34dcf463f1 to your computer and use it in GitHub Desktop.
st2auth config
<VirtualHost *:49100>
ServerName 172.168.50.50:49100
WSGIScriptAlias / /usr/lib/python2.7/dist-packages/st2auth/wsgi.py
WSGIDaemonProcess st2auth user=stanley group=st2robots processes=2 threads=25
WSGIProcessGroup st2auth
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/mycert.crt
SSLCertificateKeyFile /etc/apache2/ssl/mycert.key
AddExternalAuth pwauth /usr/sbin/pwauth
SetExternalAuthMethod pwauth pipe
LogLevel warn
ErrorLog /tmp/st2auth.error.log
CustomLog /tmp/st2auth.access.log combined
<Directory /usr/lib/python2.7/dist-packages/st2auth>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
AuthType Basic
AuthName "Restricted"
AuthBasicProvider external
AuthExternal pwauth
<LimitExcept OPTIONS>
Require unix-group st2ops
</LimitExcept>
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment