SHA256
1
0
forked from pool/pagure
pagure/pagure-5.0-default-example-cfg.patch

199 lines
7.3 KiB
Diff
Raw Normal View History

- Update to 5.10.0 + Allow viewing issues via the API using project-less API token + Various improvements to the srcfpo theme + Make pagure work with recent sqlalchemy versions (>= 1.3.0) + Add a new API endpoint to retrieve detailed stats about the issues + Improve the graphs displayed in the stats tab of each projects + Add a new graph tracking the number of open issues throughout the year + Improve loading tickets from git + Support pygit2 >= 1.1.0 + Add missing endpoints to the API documentation + Add support for wtforms >= 2.3 - Add dependency on email_validator in such case + Fix sorting users by their username when using python3 + Correct the API documentation for updating the watchers of a project + Ensure the name of the headers are always of the correct type (especially when using python3) + Ensure aclchecker and keyhelper can work with APP_URL having a trailing slash + Add a new git auth backend which can manage the .ssh/authorized_keys file directly + Update information about supported Git auth backends + Add support for arrow >= 0.15.6 + Fix getting the milter running with python3 + Fix mirroring project hosted remotely + Add url_path property to class User (and thus in the API) + Improve email text for new user registration + Set the USER environment variable when pushing over http + Add support for git push via http using basic auth relying on API token + If pagure is set up for local auth, allow git push via https to use it + Add an example nginx configuration file for pagure + Create two subpackages in the pagure for the apache and nginx configuration files + Add some documentation on how git push over http works in pagure + Make pagure compatible with the latest version of flake8 + Add PAGURE_PLUGINS_CONFIG setting in pagure configuration file - Refresh quick start instructions for new configuration options - Drop unneeded patch + Patch: 0501-Revert-Add-a-upper-limit-to-sqlalchemy.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=31
2020-05-15 03:13:38 +02:00
diff -rup pagure/files/gitolite3.rc pagure.cfg-defs/files/gitolite3.rc
--- pagure/files/gitolite3.rc 2020-05-08 21:32:56.673172022 -0400
+++ pagure.cfg-defs/files/gitolite3.rc 2020-05-08 21:37:03.018641878 -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
- Update to 5.10.0 + Allow viewing issues via the API using project-less API token + Various improvements to the srcfpo theme + Make pagure work with recent sqlalchemy versions (>= 1.3.0) + Add a new API endpoint to retrieve detailed stats about the issues + Improve the graphs displayed in the stats tab of each projects + Add a new graph tracking the number of open issues throughout the year + Improve loading tickets from git + Support pygit2 >= 1.1.0 + Add missing endpoints to the API documentation + Add support for wtforms >= 2.3 - Add dependency on email_validator in such case + Fix sorting users by their username when using python3 + Correct the API documentation for updating the watchers of a project + Ensure the name of the headers are always of the correct type (especially when using python3) + Ensure aclchecker and keyhelper can work with APP_URL having a trailing slash + Add a new git auth backend which can manage the .ssh/authorized_keys file directly + Update information about supported Git auth backends + Add support for arrow >= 0.15.6 + Fix getting the milter running with python3 + Fix mirroring project hosted remotely + Add url_path property to class User (and thus in the API) + Improve email text for new user registration + Set the USER environment variable when pushing over http + Add support for git push via http using basic auth relying on API token + If pagure is set up for local auth, allow git push via https to use it + Add an example nginx configuration file for pagure + Create two subpackages in the pagure for the apache and nginx configuration files + Add some documentation on how git push over http works in pagure + Make pagure compatible with the latest version of flake8 + Add PAGURE_PLUGINS_CONFIG setting in pagure configuration file - Refresh quick start instructions for new configuration options - Drop unneeded patch + Patch: 0501-Revert-Add-a-upper-limit-to-sqlalchemy.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=31
2020-05-15 03:13:38 +02:00
diff -rup pagure/files/pagure-apache-httpd.conf pagure.cfg-defs/files/pagure-apache-httpd.conf
--- pagure/files/pagure-apache-httpd.conf 2020-05-08 21:33:38.860594994 -0400
+++ pagure.cfg-defs/files/pagure-apache-httpd.conf 2020-05-08 21:39:33.815153778 -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
#Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
@@ -60,9 +60,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 /static /usr/lib/pythonX.Y/site-packages/pagure/static/
#Alias /releases /var/www/releases
@@ -97,7 +97,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-05-08 21:32:56.679172082 -0400
+++ pagure.cfg-defs/files/pagure.cfg.sample 2020-05-08 22:03:36.961622933 -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'
)
- Update to 5.10.0 + Allow viewing issues via the API using project-less API token + Various improvements to the srcfpo theme + Make pagure work with recent sqlalchemy versions (>= 1.3.0) + Add a new API endpoint to retrieve detailed stats about the issues + Improve the graphs displayed in the stats tab of each projects + Add a new graph tracking the number of open issues throughout the year + Improve loading tickets from git + Support pygit2 >= 1.1.0 + Add missing endpoints to the API documentation + Add support for wtforms >= 2.3 - Add dependency on email_validator in such case + Fix sorting users by their username when using python3 + Correct the API documentation for updating the watchers of a project + Ensure the name of the headers are always of the correct type (especially when using python3) + Ensure aclchecker and keyhelper can work with APP_URL having a trailing slash + Add a new git auth backend which can manage the .ssh/authorized_keys file directly + Update information about supported Git auth backends + Add support for arrow >= 0.15.6 + Fix getting the milter running with python3 + Fix mirroring project hosted remotely + Add url_path property to class User (and thus in the API) + Improve email text for new user registration + Set the USER environment variable when pushing over http + Add support for git push via http using basic auth relying on API token + If pagure is set up for local auth, allow git push via https to use it + Add an example nginx configuration file for pagure + Create two subpackages in the pagure for the apache and nginx configuration files + Add some documentation on how git push over http works in pagure + Make pagure compatible with the latest version of flake8 + Add PAGURE_PLUGINS_CONFIG setting in pagure configuration file - Refresh quick start instructions for new configuration options - Drop unneeded patch + Patch: 0501-Revert-Add-a-upper-limit-to-sqlalchemy.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=31
2020-05-15 03:13:38 +02:00
@@ -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
- Update to 5.10.0 + Allow viewing issues via the API using project-less API token + Various improvements to the srcfpo theme + Make pagure work with recent sqlalchemy versions (>= 1.3.0) + Add a new API endpoint to retrieve detailed stats about the issues + Improve the graphs displayed in the stats tab of each projects + Add a new graph tracking the number of open issues throughout the year + Improve loading tickets from git + Support pygit2 >= 1.1.0 + Add missing endpoints to the API documentation + Add support for wtforms >= 2.3 - Add dependency on email_validator in such case + Fix sorting users by their username when using python3 + Correct the API documentation for updating the watchers of a project + Ensure the name of the headers are always of the correct type (especially when using python3) + Ensure aclchecker and keyhelper can work with APP_URL having a trailing slash + Add a new git auth backend which can manage the .ssh/authorized_keys file directly + Update information about supported Git auth backends + Add support for arrow >= 0.15.6 + Fix getting the milter running with python3 + Fix mirroring project hosted remotely + Add url_path property to class User (and thus in the API) + Improve email text for new user registration + Set the USER environment variable when pushing over http + Add support for git push via http using basic auth relying on API token + If pagure is set up for local auth, allow git push via https to use it + Add an example nginx configuration file for pagure + Create two subpackages in the pagure for the apache and nginx configuration files + Add some documentation on how git push over http works in pagure + Make pagure compatible with the latest version of flake8 + Add PAGURE_PLUGINS_CONFIG setting in pagure configuration file - Refresh quick start instructions for new configuration options - Drop unneeded patch + Patch: 0501-Revert-Add-a-upper-limit-to-sqlalchemy.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=31
2020-05-15 03:13:38 +02:00
Only in pagure.cfg-defs/files: pagure.cfg.sample.orig
diff -rup pagure/files/pagure_docs_web.service pagure.cfg-defs/files/pagure_docs_web.service
--- pagure/files/pagure_docs_web.service 2020-05-08 21:33:38.862595014 -0400
+++ pagure.cfg-defs/files/pagure_docs_web.service 2020-05-08 21:41:42.996448966 -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-05-08 21:33:38.860594994 -0400
+++ pagure.cfg-defs/files/pagure-nginx.conf 2020-05-08 21:43:48.199704257 -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 / {
@@ -48,15 +48,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 / {
@@ -68,7 +68,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-05-08 21:33:38.862595014 -0400
+++ pagure.cfg-defs/files/pagure_web.service 2020-05-08 21:41:26.941287994 -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