-
-
Save rjaan/41b7a02b21fa3ae3e89525ca6733c210 to your computer and use it in GitHub Desktop.
pypiserver.wsgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin foo@bar.com | |
ServerName pypi.dev.example.com | |
ErrorLog logs/pypiserver-error_log | |
CustomLog logs/pypiserver-access_log common | |
DocumentRoot /var/www/html | |
<Directory /var/www/html> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
WSGIPassAuthorization On | |
WSGIScriptAlias / /var/www/wsgi-scripts/pypiserver.wsgi | |
WSGIDaemonProcess pypisrv user=apache group=apache processes=5 threads=15 maximum-requests=500 umask=0007 display-name=wsgi-pypisrv inactivity-timeout=300 | |
WSGIProcessGroup pypisrv | |
<Directory /var/www/wsgi-scripts> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An example pypiserver.wsgi for use with apache2 and mod_wsgi, edit as necessary. | |
# | |
# apache virtualhost configuration for mod_wsgi daemon mode: | |
# Alias /robots.txt /srv/yoursite/htdocs/robots.txt | |
# WSGIPassAuthorization On | |
# WSGIScriptAlias / /srv/yoursite/cfg/pypiserver.wsgi | |
# WSGIDaemonProcess pypisrv user=pypisrv group=pypisrv processes=1 threads=5 maximum-requests=500 umask=0007 display-name=wsgi-pypisrv inactivity-timeout=300 | |
# WSGIProcessGroup pypisrv | |
PACKAGES = "/var/www/packages" | |
HTPASSWD = "/var/www/.htpasswd" | |
import pypiserver | |
application = pypiserver.app(PACKAGES, redirect_to_fallback=False, password_file=HTPASSWD, overwrite=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment