2020-05-15 03:13:38 +02:00
|
|
|
diff -rup pagure/files/gitolite3.rc pagure.cfg-defs/files/gitolite3.rc
|
2020-06-21 15:57:24 +02:00
|
|
|
--- 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
|
2018-10-01 13:28:15 +02:00
|
|
|
@@ -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
|
2020-05-15 03:13:38 +02:00
|
|
|
diff -rup pagure/files/pagure-apache-httpd.conf pagure.cfg-defs/files/pagure-apache-httpd.conf
|
2020-06-21 15:57:24 +02:00
|
|
|
--- 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
|
2020-05-15 03:13:38 +02:00
|
|
|
@@ -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
|
|
|
|
|
2020-06-21 15:57:24 +02:00
|
|
|
#<Location />
|
|
|
|
#WSGIProcessGroup paguredocs
|
|
|
|
@@ -58,9 +58,9 @@
|
2020-05-15 03:13:38 +02:00
|
|
|
## 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
|
2020-06-21 15:57:24 +02:00
|
|
|
|
|
|
|
@@ -94,7 +94,7 @@
|
2020-05-15 03:13:38 +02:00
|
|
|
#</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
|
2020-06-21 15:57:24 +02:00
|
|
|
--- 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
|
2020-05-15 03:13:38 +02:00
|
|
|
@@ -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'
|
|
|
|
+)
|
2018-10-01 13:28:15 +02:00
|
|
|
|
|
|
|
### 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'
|
|
|
|
)
|
|
|
|
|
2020-05-15 03:13:38 +02:00
|
|
|
@@ -100,21 +108,23 @@ VIRUS_SCAN_ATTACHMENTS = False
|
2018-10-01 13:28:15 +02:00
|
|
|
|
|
|
|
### 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
|
2020-05-15 03:13:38 +02:00
|
|
|
diff -rup pagure/files/pagure_docs_web.service pagure.cfg-defs/files/pagure_docs_web.service
|
2020-06-21 15:57:24 +02:00
|
|
|
--- 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
|
2020-05-15 03:13:38 +02:00
|
|
|
@@ -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
|
2020-06-21 15:57:24 +02:00
|
|
|
--- 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
|
2020-05-15 03:13:38 +02:00
|
|
|
@@ -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 / {
|
2020-06-21 15:57:24 +02:00
|
|
|
@@ -43,15 +43,15 @@
|
2020-05-15 03:13:38 +02:00
|
|
|
#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 / {
|
2020-06-21 15:57:24 +02:00
|
|
|
@@ -59,7 +59,7 @@
|
2020-05-15 03:13:38 +02:00
|
|
|
#}
|
|
|
|
|
|
|
|
#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
|
2020-06-21 15:57:24 +02:00
|
|
|
--- 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
|
2020-05-15 03:13:38 +02:00
|
|
|
@@ -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
|