mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Removed media path settings, there are no file uploads
This commit is contained in:
parent
7a2c414f95
commit
74e474b390
3 changed files with 3 additions and 9 deletions
|
@ -74,12 +74,9 @@ STATIC_ROOT = os.path.join(VAR_ROOT, 'static')
|
||||||
# Project URLS and media settings
|
# Project URLS and media settings
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
|
|
||||||
MEDIA_URL = '/uploads/'
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
ADMIN_MEDIA_PREFIX = '/static/admin/'
|
ADMIN_MEDIA_PREFIX = '/static/admin/'
|
||||||
|
|
||||||
MEDIA_ROOT = os.path.join(VAR_ROOT, 'uploads')
|
|
||||||
|
|
||||||
ROOT_URLCONF = 'dpaste.urls'
|
ROOT_URLCONF = 'dpaste.urls'
|
||||||
|
|
||||||
LOGIN_URL = '/accounts/login/'
|
LOGIN_URL = '/accounts/login/'
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
monthly
|
monthly
|
||||||
rotate 52
|
rotate 52
|
||||||
dateext
|
dateext
|
||||||
|
create
|
||||||
missingok
|
missingok
|
||||||
compress
|
compress
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,10 +78,6 @@ server {
|
||||||
auth_basic_user_file /srv/dpaste.de/var/.htpasswd;
|
auth_basic_user_file /srv/dpaste.de/var/.htpasswd;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /media/ {
|
|
||||||
alias /srv/dpaste.de/var/media/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
alias /srv/dpaste.de/var/static/;
|
alias /srv/dpaste.de/var/static/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue