forked from pool/pagure
Neal Gompa
524e667a5f
+ Patch: 0002-starttls-support-via-SMTP_STARTTLS-provide-additiona.patch + Patch: 0001-Do-not-assume-there-is-a-SMTP_STARTTLS-configuration.patch - Backport fix for docs repo access grant + Patch: 0001-Fix-repotype-spelling.patch - Backport fix for visual bug on API docs formatting + Patch: 0001-api-fix-apidoc-format-on-api_view_issues_history_det.patch - Backport fix to changing pull mirror settings + Patch: 0001-Allow-editing-the-URL-a-project-is-mirrored-from.patch - Backport fix to add descriptions to API scopes + Patch: 0001-Show-the-ACL-name-in-addition-to-the-description-whe.patch - Backport fix to make heatmap UI functional again + Patch: 0001-Bring-back-JS-library-used-for-the-heatmap.patch - Backport fix for handling headers + Patch: 0001-Ensure-the-title-name-of-the-headers-are-strings.patch - Backport fix for burndown graph title + Patch: 0001-Fix-the-title-of-the-graph-showing-the-evolution-of-.patch - Backport fix for permissions on authorized_keys file + Patch: 0001-Make-sure-authorized_keys-file-has-mode-600.patch - Add patch to use whitenoise for rendering static assets + Patch: 0101-Use-WhiteNoise-to-serve-static-assets-for-the-Pagure.patch - Refresh default configuration patch + Patch: pagure-5.0-default-example-cfg.patch OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/pagure?expand=0&rev=39
198 lines
7.2 KiB
Diff
198 lines
7.2 KiB
Diff
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
|