adjusting upstreamfirst pagure to use themes
This commit is contained in:
parent
cce7351197
commit
00adf33c68
3 changed files with 12 additions and 3 deletions
|
@ -91,6 +91,8 @@ pagure_ssh_host_sha256: 'SHA256:ggRdzg+ugyR6WIzeiuyASAdEHf+HG5yZqJJIu/YTtHI='
|
|||
new_pagure_admin_groups: ['sysadmin-main', 'sysadmin-qa']
|
||||
|
||||
pagure_instance_name: "Upstream First Pagure"
|
||||
pagure_theme_static_dir:'/var/www/upstreamfirst-paguretheme/static'
|
||||
pagure_theme_template_dir:'/var/www/upstreamfirst-paguretheme/templates'
|
||||
|
||||
stunnel_service: "eventsource"
|
||||
stunnel_source_port: 8088
|
||||
|
|
|
@ -117,7 +117,14 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
|
|||
SSLCipherSuite RC4-SHA:AES128-SHA:ALL:!ADH:!EXP:!LOW:!MD5:!SSLV2:!NULL
|
||||
SSLProtocol ALL -SSLv2
|
||||
|
||||
Alias /static /usr/lib/python2.7/site-packages/pagure/static/
|
||||
# Configure static files so that a custom theme can override the defaults
|
||||
#
|
||||
RewriteCond "{{ pagure_theme_static_dir }}/$1" -f
|
||||
RewriteRule "^/static/(.*)" "{{ pagure_theme_static_dir }}/$1" [L]
|
||||
|
||||
# Use the application default theme for files not customized
|
||||
|
||||
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]
|
||||
|
||||
<Location />
|
||||
WSGIProcessGroup paguredocs
|
||||
|
|
|
@ -2,8 +2,8 @@ from datetime import timedelta
|
|||
|
||||
INSTANCE_NAME= '{{ pagure_instance_name }}'
|
||||
|
||||
THEME_TEMPLATE_FOLDER='/var/www/upstreamfirst-paguretheme/templates'
|
||||
THEME_STATIC_FOLDER='/var/www/upstreamfirst-paguretheme/static'
|
||||
THEME_TEMPLATE_FOLDER='{{ pagure_theme_template_dir }}'
|
||||
THEME_STATIC_FOLDER='{{ pagure_theme_static_dir }}'
|
||||
|
||||
### Set the time after which the admin session expires
|
||||
# There are two sessions on pagure, login that holds for 31 days and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue