Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Factory:Rebuild
pagure
pagure-5.0-default-example-cfg.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pagure-5.0-default-example-cfg.patch of Package pagure
diff -rup pagure/files/gitolite3.rc pagure.cfg-defs/files/gitolite3.rc --- pagure/files/gitolite3.rc 2020-06-21 09:19:34.924187087 -0400 +++ pagure.cfg-defs/files/gitolite3.rc 2020-06-21 09:20:06.922455887 -0400 @@ -16,7 +16,7 @@ # ------------------------------------------------------------------ - GL_REPO_BASE => '/path/to/git/repositories', + GL_REPO_BASE => '/srv/gitolite/repositories', # default umask gives you perms of '0700'; see the rc file docs for # how/why you might change this diff -rup pagure/files/pagure-apache-httpd.conf pagure.cfg-defs/files/pagure-apache-httpd.conf --- pagure/files/pagure-apache-httpd.conf 2020-06-21 09:19:34.926187104 -0400 +++ pagure.cfg-defs/files/pagure-apache-httpd.conf 2020-06-21 09:20:06.923455896 -0400 @@ -29,9 +29,9 @@ ## Use secure TLSv1.1 and TLSv1.2 ciphers #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" - #SSLCertificateFile /etc/pki/tls/....crt - #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt - #SSLCertificateKeyFile /etc/pki/tls/....key + #SSLCertificateFile /etc/ssl/....crt + #SSLCertificateChainFile /etc/ssl/....intermediate.crt + #SSLCertificateKeyFile /etc/ssl/....key #<Location /> #WSGIProcessGroup paguredocs @@ -58,9 +58,9 @@ ## Use secure TLSv1.1 and TLSv1.2 ciphers #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" - #SSLCertificateFile /etc/pki/tls/....crt - #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt - #SSLCertificateKeyFile /etc/pki/tls/....key + #SSLCertificateFile /etc/ssl/....crt + #SSLCertificateChainFile /etc/ssl/....intermediate.crt + #SSLCertificateKeyFile /etc/ssl/....key #Alias /releases /var/www/releases @@ -94,7 +94,7 @@ #</IfModule> #</Location> - #<Directory /var/www/releases> + #<Directory /srv/www/pagure-releases> #Options +Indexes #</Directory> diff -rup pagure/files/pagure.cfg.sample pagure.cfg-defs/files/pagure.cfg.sample --- pagure/files/pagure.cfg.sample 2020-06-21 09:19:34.927187112 -0400 +++ pagure.cfg-defs/files/pagure.cfg.sample 2020-06-21 09:20:06.923455896 -0400 @@ -72,25 +72,33 @@ DOC_APP_URL = 'http://docs.localhost.loc ### The URL to use to clone git repositories. GIT_URL_SSH = 'ssh://git@localhost.localdomain/' -GIT_URL_GIT = 'git://localhost.localdomain/' +GIT_URL_GIT = 'http://localhost.localdomain/' + + +### Folder containing the pagure user SSH authorized keys +SSH_FOLDER = os.path.join( + '/srv', + 'gitolite', + '.ssh' +) ### Folder containing to the git repos GIT_FOLDER = os.path.join( - os.path.abspath(os.path.dirname(__file__)), - '..', - 'repos' + '/srv', + 'gitolite', + 'repositories' ) REPOSPANNER_PSEUDO_FOLDER = os.path.join( - os.path.abspath(os.path.dirname(__file__)), - '..', + '/srv', + 'gitolite', 'pseudo' ) ### Folder containing the clones for the remote pull-requests REMOTE_GIT_FOLDER = os.path.join( - os.path.abspath(os.path.dirname(__file__)), - '..', + '/srv', + 'gitolite', 'remotes' ) @@ -100,21 +108,23 @@ VIRUS_SCAN_ATTACHMENTS = False ### Configuration file for gitolite GITOLITE_CONFIG = os.path.join( - os.path.abspath(os.path.dirname(__file__)), - '..', + '/srv', + 'gitolite', + '.gitolite', + 'conf', 'gitolite.conf' ) ### Home folder of the gitolite user ### Folder where to run gl-compile-conf from -GITOLITE_HOME = None +GITOLITE_HOME = '/srv/gitolite' ### Version of gitolite used: 2 or 3? GITOLITE_VERSION = 3 ### Folder containing all the public ssh keys for gitolite -GITOLITE_KEYDIR = None +GITOLITE_KEYDIR = os.path.join(GITOLITE_HOME, '.gitolite', 'keydir') ### Path to the gitolite.rc file GL_RC = None diff -rup pagure/files/pagure_docs_web.service pagure.cfg-defs/files/pagure_docs_web.service --- pagure/files/pagure_docs_web.service 2020-06-21 09:19:34.928187121 -0400 +++ pagure.cfg-defs/files/pagure_docs_web.service 2020-06-21 09:20:06.924455904 -0400 @@ -5,7 +5,7 @@ Documentation=https://pagure.io/pagure [Service] -ExecStart=/usr/bin/gunicorn --workers 4 --env PAGURE_CONFIG=/etc/pagure/pagure.cfg --access-logfile /var/log/pagure/access_docs_web.log --error-logfile /var/log/pagure/error_docs_web.log --bind unix:/tmp/pagure_docs_web.sock pagure.docs_server:APP +ExecStart=/usr/bin/gunicorn --workers 4 --env PAGURE_CONFIG=/etc/pagure/pagure.cfg --access-logfile /var/log/pagure/access_docs_web.log --error-logfile /var/log/pagure/error_docs_web.log --bind unix:/srv/gitolite/.pagure_docs_web.sock pagure.docs_server:APP Type=simple User=git Group=git diff -rup pagure/files/pagure-nginx.conf pagure.cfg-defs/files/pagure-nginx.conf --- pagure/files/pagure-nginx.conf 2020-06-21 09:19:34.926187104 -0400 +++ pagure.cfg-defs/files/pagure-nginx.conf 2020-06-21 09:20:06.924455904 -0400 @@ -12,15 +12,15 @@ #access_log /var/log/nginx/pagure_docs.access.log; #error_log /var/log/nginx/pagure_docs.error.log; - #ssl_certificate /etc/pki/tls/....crt - #ssl_certificate_key /etc/pki/tls/....key + #ssl_certificate /etc/ssl/....crt + #ssl_certificate_key /etc/ssl/....key #location @pagure_docs { #proxy_set_header Host $http_host; #proxy_set_header X-Real-IP $remote_addr; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #proxy_set_header X-Forwarded-Proto $scheme; - #proxy_pass http://unix:/tmp/pagure_docs_web.sock; + #proxy_pass http://unix:/srv/gitolite/.pagure_docs_web.sock; #} #location / { @@ -43,15 +43,15 @@ #access_log /var/log/nginx/pagure.access.log; #error_log /var/log/nginx/pagure.error.log; - #ssl_certificate /etc/pki/tls/....crt - #ssl_certificate_key /etc/pki/tls/....key + #ssl_certificate /etc/ssl/....crt + #ssl_certificate_key /etc/ssl/....key #location @pagure { #proxy_set_header Host $http_host; #proxy_set_header X-Real-IP $remote_addr; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #proxy_set_header X-Forwarded-Proto $scheme; - #proxy_pass http://unix:/tmp/pagure_web.sock; + #proxy_pass http://unix:/srv/gitolite/.pagure_web.sock; #} #location / { @@ -59,7 +59,7 @@ #} #location /releases { - #alias /var/www/releases/; + #alias /srv/www/pagure-releases/; #autoindex on; #} diff -rup pagure/files/pagure_web.service pagure.cfg-defs/files/pagure_web.service --- pagure/files/pagure_web.service 2020-06-21 09:19:34.928187121 -0400 +++ pagure.cfg-defs/files/pagure_web.service 2020-06-21 09:20:06.924455904 -0400 @@ -5,7 +5,7 @@ Documentation=https://pagure.io/pagure [Service] -ExecStart=/usr/bin/gunicorn --workers 4 --env PAGURE_CONFIG=/etc/pagure/pagure.cfg --access-logfile /var/log/pagure/access_web.log --error-logfile /var/log/pagure/error_web.log --bind unix:/tmp/pagure_web.sock "pagure.flask_app:create_app()" +ExecStart=/usr/bin/gunicorn --workers 4 --env PAGURE_CONFIG=/etc/pagure/pagure.cfg --access-logfile /var/log/pagure/access_web.log --error-logfile /var/log/pagure/error_web.log --bind unix:/srv/gitolite/.pagure_web.sock "pagure.flask_app:create_app()" Type=simple User=git Group=git
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor