Cleanup copr.conf
This commit is contained in:
parent
75778f3beb
commit
b996789ba9
1 changed files with 5 additions and 21 deletions
|
@ -43,32 +43,16 @@ LOG_DIR = "/var/log/copr-frontend/"
|
||||||
# to accept stat events from logstash
|
# to accept stat events from logstash
|
||||||
INTRANET_IPS = {{ copr_backend_ips }}
|
INTRANET_IPS = {{ copr_backend_ips }}
|
||||||
|
|
||||||
REPO_GPGCHECK = {% if devel %} 0 {% else %} 1 {% endif %}
|
REPO_GPGCHECK = 1
|
||||||
|
|
||||||
{% if env == 'staging' %}
|
PUBLIC_COPR_BASE_URL = "https://{{ copr_frontend_public_hostname }}"
|
||||||
PUBLIC_COPR_BASE_URL = "http://copr-fe-dev.cloud.fedoraproject.org"
|
|
||||||
{% else %}
|
|
||||||
PUBLIC_COPR_BASE_URL = "https://copr.fedorainfracloud.org"
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if env == 'staging' %}
|
# URLs for fedmenu
|
||||||
# Staging URLs for fedmenu
|
FEDMENU_URL = "https://apps{{ env_prefix }}.fedoraproject.org/fedmenu/"
|
||||||
FEDMENU_URL = "https://apps.stg.fedoraproject.org/fedmenu/"
|
FEDMENU_DATA_URL = "https://apps{{ env_prefix }}.fedoraproject.org/js/data.js"
|
||||||
FEDMENU_DATA_URL = "https://apps.stg.fedoraproject.org/js/data.js"
|
|
||||||
{% else %}
|
|
||||||
# Production URLs for fedmenu
|
|
||||||
FEDMENU_URL = "https://apps.fedoraproject.org/fedmenu/"
|
|
||||||
FEDMENU_DATA_URL = "https://apps.fedoraproject.org/js/data.js"
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
# todo: check that ansible variable is used correctly
|
|
||||||
{% if env == 'staging' %}
|
|
||||||
ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http"
|
|
||||||
ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http"
|
|
||||||
{% else %}
|
|
||||||
ENFORCE_PROTOCOL_FOR_BACKEND_URL = "https"
|
ENFORCE_PROTOCOL_FOR_BACKEND_URL = "https"
|
||||||
ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "https"
|
ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "https"
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
DIST_GIT_URL="https://{{ dist_git_base_url }}/cgit"
|
DIST_GIT_URL="https://{{ dist_git_base_url }}/cgit"
|
||||||
DIST_GIT_CLONE_URL="https://{{ dist_git_base_url }}/git"
|
DIST_GIT_CLONE_URL="https://{{ dist_git_base_url }}/git"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue