diff --git a/public/fs/etc/pagure/pagure-cfg.sh b/public/fs/etc/pagure/pagure-cfg.sh old mode 100644 new mode 100755 index e2bf7a3..ae15d36 --- a/public/fs/etc/pagure/pagure-cfg.sh +++ b/public/fs/etc/pagure/pagure-cfg.sh @@ -2,6 +2,7 @@ set -eu +source /root/config/private/config/hostname source /root/config/private/config/server.ports source /root/config/private/keys/pagure/pagure.keys @@ -9,4 +10,13 @@ sed -e 's/@ssh_port@/'${ssh_port}'/g' \ -e 's/@pagure_flask_key@/'${pagure_flask_key}'/g' \ -e 's/@pagure_pgsql_key@/'${pagure_pgsql_key}'/g' \ -e 's/@pagure_email_key@/'${pagure_email_key}'/g' \ + -e 's/@sitename@/'${sitename}'/g' \ + -e 's/@sitezone@/'${sitezone}'/g' \ + -e 's/@sitemask@/'${sitemask}'/g' \ + -e 's/@smtphost@/'${smtphost}'/g' \ + -e 's/@docssite@/'${docssite}'/g' \ + -e 's/@docszone@/'${docszone}'/g' \ + -e 's/@devadmin@/'${devadmin}'/g' \ "$1" + +cat /root/config/private/config/pagure_ssh.pub diff --git a/public/fs/etc/pagure/pagure.cfg.in b/public/fs/etc/pagure/pagure.cfg.in index 5ea2fb0..d17a347 100644 --- a/public/fs/etc/pagure/pagure.cfg.in +++ b/public/fs/etc/pagure/pagure.cfg.in @@ -5,9 +5,9 @@ from pagure.default_config import ACLS ### site meta -INSTANCE_NAME = 'midipix' -ADMIN_EMAIL = 'pagure@midipix.org' -THEME = 'midipix' +INSTANCE_NAME = '@sitename@' +ADMIN_EMAIL = 'pagure@@sitezone@' +THEME = '@sitename@' ### pagure authentication @@ -39,7 +39,7 @@ DB_URL = 'postgres://pagure:@pagure_pgsql_key@@localhost/pa ### site administration FEDMSG_NOTIFICATIONS = False PAGURE_AUTH = 'local' -PAGURE_ADMIN_USERS = ['midipix'] +PAGURE_ADMIN_USERS = ['@devadmin@'] ADMIN_GROUP = [] ADMIN_SESSION_LIFETIME = timedelta(minutes=120) @@ -78,21 +78,21 @@ VIRUS_SCAN_ATTACHMENTS = False ### SMTP settings -SMTP_SERVER = 'mail.culturestrings.org' +SMTP_SERVER = 'mail.@smtphost@' SMTP_PORT = 25 SMTP_STARTTLS = True SMTP_SSL = False SMTP_USERNAME = None SMTP_PASSWORD = None -FROM_EMAIL = 'pagure@midipix.org' +FROM_EMAIL = 'pagure@@sitezone@' SALT_EMAIL = '@pagure_email_key@' -DOMAIN_EMAIL_NOTIFICATIONS = 'midipix.org' +DOMAIN_EMAIL_NOTIFICATIONS = '@sitezone@' ### web frontend -APP_URL = 'https://dev.midipix.org' -DOC_APP_URL = 'https://docs.foss21.org' +APP_URL = 'https://dev.@sitezone@' +DOC_APP_URL = 'https://docs.@docszone@' SHORT_LENGTH = 6 ITEM_PER_PAGE = 50 @@ -101,15 +101,15 @@ MAX_CONTENT_LENGTH = 4 * 1024 * 1024 ### web backend APPLICATION_ROOT = '/' -SESSION_COOKIE_NAME = 'pagure_at_midipix_dot_org' +SESSION_COOKIE_NAME = 'pagure_at_@sitemask@' SESSION_COOKIE_SECURE = True CHECK_SESSION_IP = False OLD_VIEW_COMMIT_ENABLED = False ### git frontend -GIT_URL_SSH = 'ssh://git@midipix.org:@ssh_port@/' -GIT_URL_GIT = 'https://dev.midipix.org/' +GIT_URL_SSH = 'ssh://git@@sitezone@:@ssh_port@/' +GIT_URL_GIT = 'https://dev.@sitezone@/' ### gunicorn @@ -159,15 +159,3 @@ SSH_KEYS_OPTIONS = ( 'restrict,command="/usr/lib/pagure/aclchecker.py %(username)s"' ) - -SSH_KEYS = { - 'ED25519': { - 'pubkey': ' dev.midipix.org,95.216.227.143,2a01:4f9:2b:20f0::2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILp9B8XCCKYUzueIICIJBmxHIOovaup9SKJdyQWAem8U', - 'SHA256': ' SHA256:+KTUN+cN7AYorPHeST7SFmKyKuYzRXmIIyHlrIGdXiA', - }, - - 'RSA': { - 'pubkey': ' dev.midipix.org,95.216.227.143,2a01:4f9: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