++
This commit is contained in:
parent
8dae7c76c7
commit
75922e886e
@ -65,7 +65,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: checklists-backend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -155,37 +155,37 @@ spec:
|
|||||||
_default: "0"
|
_default: "0"
|
||||||
- name: DOCUMENTATIONS_INTERNAL_HOST
|
- name: DOCUMENTATIONS_INTERNAL_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-service.documentations.svc.cluster.local:8080
|
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||||
- name: DOCUMENTATIONS_EXTERNAL_HOST
|
- name: DOCUMENTATIONS_EXTERNAL_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-service.documentations.svc.cluster.local:8080/
|
_default: http://documentations-api.documentations.svc.cluster.local:8080/
|
||||||
- name: DOCUMENTATION_URL
|
- name: DOCUMENTATION_URL
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-service.documentations.svc.cluster.local:8080/
|
_default: http://documentations-api.documentations.svc.cluster.local:8080/
|
||||||
- name: DOCUMENTATION_FILESTREAM_URL
|
- name: DOCUMENTATION_FILESTREAM_URL
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-filestream-service.documentations.svc.cluster.local:8080/
|
_default: http://documentations-filestream.documentations.svc.cluster.local:8080/
|
||||||
- name: WORKFLOWS_HOST
|
- name: WORKFLOWS_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://workflows-service.workflow.svc.cluster.local:8000/
|
_default: http://workflows-api-service.workflow.svc.cluster.local:8000/
|
||||||
- name: EAV_HOST
|
- name: EAV_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://eav-service.eav.svc.cluster.local:8000
|
_default: http://eav-service.eav.svc.cluster.local:8000
|
||||||
- name: WORKSPACES_HOST
|
- name: WORKSPACES_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://workspaces-service.workspaces.svc.cluster.local:8000/
|
_default: http://backend-svc.workspaces.svc.cluster.local:8000/
|
||||||
- name: COMPARISON_URL
|
- name: COMPARISON_URL
|
||||||
value:
|
value:
|
||||||
_default: http://backend-service.comparisons.svc.cluster.local:8080/
|
_default: http://backend-service.comparisons.svc.cluster.local:8000/
|
||||||
- name: WORKFLOWS_IMAGE_VERSION
|
- name: WORKFLOWS_IMAGE_VERSION
|
||||||
value:
|
value:
|
||||||
_default: master
|
_default: master
|
||||||
- name: EXTERNAL_DOCUMENTATION_URL
|
- name: EXTERNAL_DOCUMENTATION_URL
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-service.documentations.svc.cluster.local:8080/
|
_default: http://documentations-api.documentations.svc.cluster.local:8080/
|
||||||
- name: WORKFLOWS_BIMV2_INTERNAL_HOST
|
- name: WORKFLOWS_BIMV2_INTERNAL_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://backend-service.bim.svc.cluster.local:8000/
|
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
||||||
- name: ENABLE_SSL
|
- name: ENABLE_SSL
|
||||||
value:
|
value:
|
||||||
_default: "0"
|
_default: "0"
|
||||||
|
|||||||
@ -72,13 +72,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: backend
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8000
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8000
|
_default: 8000
|
||||||
|
|||||||
@ -69,7 +69,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: frontend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -63,7 +63,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: s3-proxy-svc
|
_default: s3-proxy-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -90,13 +90,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-api-svc
|
_default: documentations-api
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8080
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8080
|
_default: 8080
|
||||||
@ -176,7 +176,7 @@ spec:
|
|||||||
_default: http://backend-svc.workspaces.svc.cluster.local:8000/
|
_default: http://backend-svc.workspaces.svc.cluster.local:8000/
|
||||||
- name: BIM_API_URL
|
- name: BIM_API_URL
|
||||||
value:
|
value:
|
||||||
_default: http://bim-api-service.bim.svc.cluster.local:8080/
|
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
||||||
- name: BIM_API_V2_URL
|
- name: BIM_API_V2_URL
|
||||||
value:
|
value:
|
||||||
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
||||||
|
|||||||
@ -90,13 +90,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-filestream-svc
|
_default: documentations-filestream
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8080
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8080
|
_default: 8080
|
||||||
@ -143,22 +143,22 @@ spec:
|
|||||||
_default: production
|
_default: production
|
||||||
- name: HOST
|
- name: HOST
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-service.documentations.svc.cluster.local:8080
|
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||||
- name: FILE_STREAM_HOST
|
- name: FILE_STREAM_HOST
|
||||||
value:
|
value:
|
||||||
_default: sarex.ugok.lan
|
_default: sarex.ugok.lan
|
||||||
- name: DOCUMENTATION_URL
|
- name: DOCUMENTATION_URL
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-service.documentations.svc.cluster.local:8080/
|
_default: http://documentations-api.documentations.svc.cluster.local:8080/
|
||||||
- name: WORKFLOW_URL
|
- name: WORKFLOW_URL
|
||||||
value:
|
value:
|
||||||
_default: http://workflows-service.workflow.svc.cluster.local:8000/
|
_default: http://workflows-api-service.workflow.svc.cluster.local:8000/
|
||||||
- name: WORKSPACE_URL
|
- name: WORKSPACE_URL
|
||||||
value:
|
value:
|
||||||
_default: http://backend-svc.workspaces.svc.cluster.local:8000/
|
_default: http://backend-svc.workspaces.svc.cluster.local:8000/
|
||||||
- name: BIM_API_URL
|
- name: BIM_API_URL
|
||||||
value:
|
value:
|
||||||
_default: http://bim-api-service.bim.svc.cluster.local:8080/
|
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
||||||
- name: BIM_API_V2_URL
|
- name: BIM_API_V2_URL
|
||||||
value:
|
value:
|
||||||
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
_default: http://backend-svc.bim.svc.cluster.local:8000/
|
||||||
|
|||||||
@ -70,7 +70,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: documentation-frontend-static-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -70,13 +70,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: pdm-svc
|
_default: pdm-api
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8080
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8080
|
_default: 8080
|
||||||
@ -117,7 +117,7 @@ spec:
|
|||||||
_default: "false"
|
_default: "false"
|
||||||
- name: DRAWINGS_INTERNAL_URL
|
- name: DRAWINGS_INTERNAL_URL
|
||||||
value:
|
value:
|
||||||
_default: http://drawings-api-service.drawings.svc.cluster.local:80
|
_default: http://backend-svc.drawings.svc.cluster.local:8000
|
||||||
- name: ATTACHMENTS_URL
|
- name: ATTACHMENTS_URL
|
||||||
value:
|
value:
|
||||||
_default: http://attachments-service.attachments.svc.cluster.local:8000
|
_default: http://attachments-service.attachments.svc.cluster.local:8000
|
||||||
@ -171,7 +171,7 @@ spec:
|
|||||||
_default: "8080"
|
_default: "8080"
|
||||||
- name: INSPECTIONS_URL
|
- name: INSPECTIONS_URL
|
||||||
value:
|
value:
|
||||||
_default: http://inspections-service.inspections.svc.cluster.local:80
|
_default: http://sarex-inspections-service.inspections.svc.cluster.local:80
|
||||||
- name: LOG_LEVEL
|
- name: LOG_LEVEL
|
||||||
value:
|
value:
|
||||||
_default: INFO
|
_default: INFO
|
||||||
@ -201,7 +201,7 @@ spec:
|
|||||||
_default: https://gitlab.com
|
_default: https://gitlab.com
|
||||||
- name: REMARKS_URL
|
- name: REMARKS_URL
|
||||||
value:
|
value:
|
||||||
_default: http://remarks-static-service.remarks.svc.cluster.local:8080/remarks
|
_default: http://remarks-static.remarks.svc.cluster.local:80/remarks
|
||||||
- name: RESOURCES_URL
|
- name: RESOURCES_URL
|
||||||
value:
|
value:
|
||||||
_default: http://resources-service.resources.svc.cluster.local:8000
|
_default: http://resources-service.resources.svc.cluster.local:8000
|
||||||
|
|||||||
@ -67,7 +67,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-service
|
_default: backend-svc
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -102,13 +102,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: eav-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8000
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8000
|
_default: 8000
|
||||||
|
|||||||
@ -11,3 +11,8 @@ spec:
|
|||||||
image:
|
image:
|
||||||
name:
|
name:
|
||||||
_default: 10.4.10.187:80/library/export-reviews:prod_c4cae4ee
|
_default: 10.4.10.187:80/library/export-reviews:prod_c4cae4ee
|
||||||
|
service:
|
||||||
|
name:
|
||||||
|
_default: export-reviews-service
|
||||||
|
port:
|
||||||
|
_default: 8000
|
||||||
|
|||||||
@ -70,13 +70,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: backend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8000
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8000
|
_default: 8000
|
||||||
|
|||||||
@ -69,7 +69,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: frontend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -136,7 +136,7 @@ spec:
|
|||||||
_default: "30"
|
_default: "30"
|
||||||
- name: WORKFLOWS_URL
|
- name: WORKFLOWS_URL
|
||||||
value:
|
value:
|
||||||
_default: http://workflows-service.workflow
|
_default: http://workflows-api-service.workflow
|
||||||
- name: WORKFLOWS_TIMEOUT
|
- name: WORKFLOWS_TIMEOUT
|
||||||
value:
|
value:
|
||||||
_default: "30"
|
_default: "30"
|
||||||
|
|||||||
@ -72,7 +72,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: issues-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -69,7 +69,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: static-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -3,13 +3,12 @@
|
|||||||
# backend'ом и celery как /src/config/settings/production.py.
|
# backend'ом и celery как /src/config/settings/production.py.
|
||||||
#
|
#
|
||||||
# ВНИМАНИЕ: в файле буквально зашиты секреты (SECRET_KEY, DJANGO_TOKEN,
|
# ВНИМАНИЕ: в файле буквально зашиты секреты (SECRET_KEY, DJANGO_TOKEN,
|
||||||
# KAFKA_PASSWORD) и чужой домен brusnika-stage-kafka-bootstrap — копирую
|
# KAFKA_PASSWORD) — значения не заворачиваются в env/Secret на уровне
|
||||||
# как есть, как и договаривались, но это стоит знать: значения не
|
# HelmRelease, они прямо в коде.
|
||||||
# заворачиваются в env/Secret на уровне HelmRelease, они прямо в коде.
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: production-configmap
|
name: production-configmap
|
||||||
namespace: issues
|
namespace: issues
|
||||||
data:
|
data:
|
||||||
production.py: "from datetime import timedelta\nimport os\nfrom .base import *\n\n# DEBUG SETTINGS START\n# -----------------------------------------------------------------------------\nDEBUG = True\n# -----------------------------------------------------------------------------\n\nTEST_MODE = False\n\n# SECRETS SETTINGS START\n# -----------------------------------------------------------------------------\n\nAWS_S3_VERIFY=False\nENABLE_MAILGUN=False\nSECRET_KEY = \"FromToMuchLoveOfLiving\" # Delete after Test\n# -----------------------------------------------------------------------------\n\n# ALLOWED HOSTS START\n# -----------------------------------------------------------------------------\nALLOWED_HOSTS = [\"*\"]\n# -----------------------------------------------------------------------------\n\n# APPS SETTINGS START\n# -----------------------------------------------------------------------------\n# INSTALLED_APPS += [\n# \"django_extensions\",\n# ]\n# -----------------------------------------------------------------------------\n\nDJANGO_TOKEN=\"aGFnZW4wMTM6emVhbG90MDk2\"\n\n# DEBUG SETTINGS START\n# -----------------------------------------------------------------------------\nDEBUG = True\n# -----------------------------------------------------------------------------\n\nREVIEW_HOST='http://backend-service.flows.svc.cluster.local:8000'\n# -----------------------------------------------------------------------------\n# EXTERNAL SERVICES END\n\nWORKFLOWS_HOST = \"http://workflows-api-service.workflow.svc.cluster.local:8000\"\nWORKFLOWS_URL = \"http://workflows-api-service.workflow.svc.cluster.local:8000\"\nDOCUMENTATIONS_URL = \"http://documentations-api.documentations.svc.cluster.local:8080\"\nRESOURCES_API_HOST = os.getenv(\"RESOURCES_API_HOST\", default=\"http://resources-service.resources.svc.cluster:8000\")\nKAFKA_HOST = \"brusnika-stage-kafka-bootstrap.kafka.svc.cluster.local:9093\" \nKAFKA_USERNAME = \"sarex\" \nKAFKA_PASSWORD = \"nK36sasvSfoItJnXQ4qxav2OUWIPX5ZC\"\nKAFKA_SSL_CAFILE = os.getenv(\"KAFKA_SSL_CAFILE\", \"/usr/local/share/ca-certificates/kafka.crt\")\nKAFKA_EAV_ASSETS_TOPIC = os.getenv(\"KAFKA_EAV_ASSETS_TOPIC\", \"sarex\")\nKAFKA_ISSUES_TOPIC = os.getenv(\"KAFKA_ISSUES_TOPIC\", \"sarex-issues\")\nSMTP_HOST = 'mail.uchgok.ru'\nSMTP_PORT = 25\nEMAIL_FROM = 'sarex@uchgok.ru'\n\n\nUSE_ASYNC_FUNCTIONS = False\nUSE_NOTIFICATIONS = True\n\n# JWT SETTINGS START\n# ---------------------------------------------------------------------------------------------------------------------\nSIMPLE_JWT_ISSUER = os.getenv(\"SIMPLE_JWT_ISSUER\", default=\"default_issuer\")\n\nSIMPLE_JWT = {\n \"ACCESS_TOKEN_LIFETIME\": timedelta(minutes=5),\n \"REFRESH_TOKEN_LIFETIME\": timedelta(days=1),\n \"ROTATE_REFRESH_TOKENS\": False,\n \"UPDATE_LAST_LOGIN\": False,\n\n \"ALGORITHM\": \"RS512\",\n \"SIGNING_KEY\": os.getenv(\"JWT_PRIVATE_KEY\", default=\"\").replace(\"\\\\n\", \"\\n\"),\n \"VERIFYING_KEY\": os.getenv(\"JWT_PUBLIC_KEY\").replace(\"\\\\n\", \"\\n\"),\n \"AUDIENCE\": None,\n \"ISSUER\": SIMPLE_JWT_ISSUER,\n\n \"AUTH_HEADER_TYPES\": (\"Bearer\",),\n \"AUTH_HEADER_NAME\": \"HTTP_AUTHORIZATION\",\n \"USER_ID_FIELD\": \"id\",\n \"USER_ID_CLAIM\": \"user_id\",\n\n \"AUTH_TOKEN_CLASSES\": (\"rest_framework_simplejwt.tokens.AccessToken\",),\n \"TOKEN_TYPE_CLAIM\": \"token_type\",\n\n \"JTI_CLAIM\": \"jti\",\n\n \"SLIDING_TOKEN_REFRESH_EXP_CLAIM\": \"refresh_exp\",\n \"SLIDING_TOKEN_LIFETIME\": timedelta(minutes=5),\n \"SLIDING_TOKEN_REFRESH_LIFETIME\": timedelta(days=1),\n}\n# ---------------------------------------------------------------------------------------------------------------------\n\nCORS_ALLOWED_ORIGINS = [\n \"https://ugok-sarex.uralmine.com\",\n]\n\nCORS_TRUSTED_ORIGINS = [\n \"https://ugok-sarex.uralmine.com\",\n]\n\nCSRF_TRUSTED_ORIGINS = [\n \"https://ugok-sarex.uralmine.com\",\n]\n\nCORS_ALLOW_ALL_ORIGINS = True\n\nCORS_ALLOW_METHODS = [\n \"DELETE\",\n \"GET\",\n \"OPTIONS\",\n \"PATCH\",\n \"POST\",\n \"PUT\",\n]\n\nSAREX_API = \"http://backend.django.svc.cluster.local:8000\"\n\nAERO_PUBLIC_HOST = os.getenv(\"AERO_PUBLIC_HOST\", default=SAREX_API)\n\nBASE_AERO_URL = \"http://backend.django.svc.cluster.local:8000\"\n\nENVIRONMENT = \"production\"\n\nSESSION_COOKIE_NAME = \"issues-sessionid\"\nCSRF_COOKIE_NAME = \"issues-csrftoken\"\nSTATIC_URL = \"/static/\"\nSTORAGES = {\n 'default': {\n 'BACKEND': \"storages.backends.s3boto3.S3Boto3Storage\",\n },\n 'staticfiles': {\n # Leave whatever setting you already have here, e.g.:\n 'BACKEND': \"storages.backends.s3boto3.S3Boto3Storage\",\n }\n}\n"
|
production.py: "from datetime import timedelta\nimport os\nfrom .base import *\n\n# DEBUG SETTINGS START\n# -----------------------------------------------------------------------------\nDEBUG = True\n# -----------------------------------------------------------------------------\n\nTEST_MODE = False\n\n# SECRETS SETTINGS START\n# -----------------------------------------------------------------------------\n\nAWS_S3_VERIFY=False\nENABLE_MAILGUN=False\nSECRET_KEY = \"FromToMuchLoveOfLiving\" # Delete after Test\n# -----------------------------------------------------------------------------\n\n# ALLOWED HOSTS START\n# -----------------------------------------------------------------------------\nALLOWED_HOSTS = [\"*\"]\n# -----------------------------------------------------------------------------\n\n# APPS SETTINGS START\n# -----------------------------------------------------------------------------\n# INSTALLED_APPS += [\n# \"django_extensions\",\n# ]\n# -----------------------------------------------------------------------------\n\nDJANGO_TOKEN=\"aGFnZW4wMTM6emVhbG90MDk2\"\n\n# DEBUG SETTINGS START\n# -----------------------------------------------------------------------------\nDEBUG = True\n# -----------------------------------------------------------------------------\n\nREVIEW_HOST='http://backend-service.flows.svc.cluster.local:8000'\n# -----------------------------------------------------------------------------\n# EXTERNAL SERVICES END\n\nWORKFLOWS_HOST = \"http://workflows-api-service.workflow.svc.cluster.local:8000\"\nWORKFLOWS_URL = \"http://workflows-api-service.workflow.svc.cluster.local:8000\"\nDOCUMENTATIONS_URL = \"http://documentations-api.documentations.svc.cluster.local:8080\"\nRESOURCES_API_HOST = os.getenv(\"RESOURCES_API_HOST\", default=\"http://resources-service.resources.svc.cluster:8000\")\nKAFKA_HOST = \"ugok-prod-kafka-bootstrap.kafka.svc.cluster.local:9093\" \nKAFKA_USERNAME = \"sarex\" \nKAFKA_PASSWORD = \"nK36sasvSfoItJnXQ4qxav2OUWIPX5ZC\"\nKAFKA_SSL_CAFILE = os.getenv(\"KAFKA_SSL_CAFILE\", \"/usr/local/share/ca-certificates/kafka.crt\")\nKAFKA_EAV_ASSETS_TOPIC = os.getenv(\"KAFKA_EAV_ASSETS_TOPIC\", \"sarex\")\nKAFKA_ISSUES_TOPIC = os.getenv(\"KAFKA_ISSUES_TOPIC\", \"sarex-issues\")\nSMTP_HOST = 'mail.uchgok.ru'\nSMTP_PORT = 25\nEMAIL_FROM = 'sarex@uchgok.ru'\n\n\nUSE_ASYNC_FUNCTIONS = False\nUSE_NOTIFICATIONS = True\n\n# JWT SETTINGS START\n# ---------------------------------------------------------------------------------------------------------------------\nSIMPLE_JWT_ISSUER = os.getenv(\"SIMPLE_JWT_ISSUER\", default=\"default_issuer\")\n\nSIMPLE_JWT = {\n \"ACCESS_TOKEN_LIFETIME\": timedelta(minutes=5),\n \"REFRESH_TOKEN_LIFETIME\": timedelta(days=1),\n \"ROTATE_REFRESH_TOKENS\": False,\n \"UPDATE_LAST_LOGIN\": False,\n\n \"ALGORITHM\": \"RS512\",\n \"SIGNING_KEY\": os.getenv(\"JWT_PRIVATE_KEY\", default=\"\").replace(\"\\\\n\", \"\\n\"),\n \"VERIFYING_KEY\": os.getenv(\"JWT_PUBLIC_KEY\").replace(\"\\\\n\", \"\\n\"),\n \"AUDIENCE\": None,\n \"ISSUER\": SIMPLE_JWT_ISSUER,\n\n \"AUTH_HEADER_TYPES\": (\"Bearer\",),\n \"AUTH_HEADER_NAME\": \"HTTP_AUTHORIZATION\",\n \"USER_ID_FIELD\": \"id\",\n \"USER_ID_CLAIM\": \"user_id\",\n\n \"AUTH_TOKEN_CLASSES\": (\"rest_framework_simplejwt.tokens.AccessToken\",),\n \"TOKEN_TYPE_CLAIM\": \"token_type\",\n\n \"JTI_CLAIM\": \"jti\",\n\n \"SLIDING_TOKEN_REFRESH_EXP_CLAIM\": \"refresh_exp\",\n \"SLIDING_TOKEN_LIFETIME\": timedelta(minutes=5),\n \"SLIDING_TOKEN_REFRESH_LIFETIME\": timedelta(days=1),\n}\n# ---------------------------------------------------------------------------------------------------------------------\n\nCORS_ALLOWED_ORIGINS = [\n \"https://ugok-sarex.uralmine.com\",\n]\n\nCORS_TRUSTED_ORIGINS = [\n \"https://ugok-sarex.uralmine.com\",\n]\n\nCSRF_TRUSTED_ORIGINS = [\n \"https://ugok-sarex.uralmine.com\",\n]\n\nCORS_ALLOW_ALL_ORIGINS = True\n\nCORS_ALLOW_METHODS = [\n \"DELETE\",\n \"GET\",\n \"OPTIONS\",\n \"PATCH\",\n \"POST\",\n \"PUT\",\n]\n\nSAREX_API = \"http://backend.django.svc.cluster.local:8000\"\n\nAERO_PUBLIC_HOST = os.getenv(\"AERO_PUBLIC_HOST\", default=SAREX_API)\n\nBASE_AERO_URL = \"http://backend.django.svc.cluster.local:8000\"\n\nENVIRONMENT = \"production\"\n\nSESSION_COOKIE_NAME = \"issues-sessionid\"\nCSRF_COOKIE_NAME = \"issues-csrftoken\"\nSTATIC_URL = \"/static/\"\nSTORAGES = {\n 'default': {\n 'BACKEND': \"storages.backends.s3boto3.S3Boto3Storage\",\n },\n 'staticfiles': {\n # Leave whatever setting you already have here, e.g.:\n 'BACKEND': \"storages.backends.s3boto3.S3Boto3Storage\",\n }\n}\n"
|
||||||
|
|||||||
@ -111,7 +111,7 @@ spec:
|
|||||||
_default: "0"
|
_default: "0"
|
||||||
- name: KAFKA_HOST
|
- name: KAFKA_HOST
|
||||||
value:
|
value:
|
||||||
_default: kafka.kafka.svc.cluster.local
|
_default: ugok-prod-kafka-bootstrap.kafka.svc.cluster.local
|
||||||
- name: KAFKA_PORT
|
- name: KAFKA_PORT
|
||||||
value:
|
value:
|
||||||
_default: "9092"
|
_default: "9092"
|
||||||
|
|||||||
@ -70,7 +70,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-service
|
_default: backend-svc
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
@ -96,7 +96,7 @@ spec:
|
|||||||
_default: https://sarex.ugok.lan/notes
|
_default: https://sarex.ugok.lan/notes
|
||||||
- name: FAAS_SERVICE
|
- name: FAAS_SERVICE
|
||||||
value:
|
value:
|
||||||
_default: http://generate-document-service.faas.svc.cluster.local:8000
|
_default: http://export-reviews-service.faas.svc.cluster.local:8000
|
||||||
- name: WORKSPACE_URL
|
- name: WORKSPACE_URL
|
||||||
value:
|
value:
|
||||||
_default: http://backend-svc.workspaces.svc.cluster.local:8000/api/v1
|
_default: http://backend-svc.workspaces.svc.cluster.local:8000/api/v1
|
||||||
|
|||||||
@ -71,13 +71,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-service
|
_default: frontend-svc
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8080
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 80
|
_default: 80
|
||||||
|
|||||||
@ -69,7 +69,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: frontend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -151,7 +151,7 @@ spec:
|
|||||||
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||||
- name: EXTERNAL_FILESTREAM_URL
|
- name: EXTERNAL_FILESTREAM_URL
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-filestream-service.documentations.svc.cluster.local:8080
|
_default: http://documentations-filestream.documentations.svc.cluster.local:8080
|
||||||
- name: RESOURCES_API_INTERNAL_HOST
|
- name: RESOURCES_API_INTERNAL_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://resources-service.resources.svc.cluster.local:8000
|
_default: http://resources-service.resources.svc.cluster.local:8000
|
||||||
|
|||||||
@ -151,7 +151,7 @@ spec:
|
|||||||
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
_default: http://documentations-api.documentations.svc.cluster.local:8080
|
||||||
- name: EXTERNAL_FILESTREAM_URL
|
- name: EXTERNAL_FILESTREAM_URL
|
||||||
value:
|
value:
|
||||||
_default: http://documentations-filestream-service.documentations.svc.cluster.local:8080
|
_default: http://documentations-filestream.documentations.svc.cluster.local:8080
|
||||||
- name: RESOURCES_API_INTERNAL_HOST
|
- name: RESOURCES_API_INTERNAL_HOST
|
||||||
value:
|
value:
|
||||||
_default: http://resources-service.resources.svc.cluster.local:8000
|
_default: http://resources-service.resources.svc.cluster.local:8000
|
||||||
|
|||||||
@ -62,7 +62,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: frontend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -11,3 +11,6 @@ spec:
|
|||||||
image:
|
image:
|
||||||
name:
|
name:
|
||||||
_default: cr.yandex/crp3ccidau046kdj8g9q/remarks-frontend:contour_1bed3986
|
_default: cr.yandex/crp3ccidau046kdj8g9q/remarks-frontend:contour_1bed3986
|
||||||
|
service:
|
||||||
|
name:
|
||||||
|
_default: remarks-static
|
||||||
|
|||||||
@ -71,7 +71,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: rfi-backend-api-svc
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -69,7 +69,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: rfi-frontend-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -65,13 +65,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: sarex-subscriptions-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 8000
|
_default: 80
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8000
|
_default: 8000
|
||||||
|
|||||||
@ -70,13 +70,13 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: api-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8000
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8000
|
_default: 8000
|
||||||
|
|||||||
@ -71,7 +71,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: backend-svc
|
_default: transmittal-service
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -69,7 +69,7 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
name:
|
name:
|
||||||
_default: frontend-svc
|
_default: transmittal-frontend-static
|
||||||
|
|
||||||
type:
|
type:
|
||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|||||||
@ -104,7 +104,7 @@ spec:
|
|||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8000
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 8000
|
_default: 8000
|
||||||
|
|||||||
@ -75,7 +75,7 @@ spec:
|
|||||||
_default: ClusterIP
|
_default: ClusterIP
|
||||||
|
|
||||||
port:
|
port:
|
||||||
_default: 80
|
_default: 8080
|
||||||
|
|
||||||
targetPort:
|
targetPort:
|
||||||
_default: 80
|
_default: 80
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user