docs(public): sanitize release materials
This commit is contained in:
@@ -451,9 +451,9 @@
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-worktime-panel.js", dest: "{{ aw_server_webui_dir }}/js/aw-worktime-panel.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-host-groups.json", dest: "{{ aw_server_webui_dir }}/js/aw-host-groups.json", mode: "0644" }
|
||||
|
||||
- name: Создать каталог /root/bootstrap для apply_webui_ru_patch.sh
|
||||
- name: Создать каталог /opt/detmir/bootstrap для apply_webui_ru_patch.sh
|
||||
ansible.builtin.file:
|
||||
path: /root/bootstrap
|
||||
path: /opt/detmir/bootstrap
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
@@ -463,10 +463,10 @@
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "{{ item.mode }}"
|
||||
loop:
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-ru-patch.js", dest: "/root/bootstrap/aw-ru-patch.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-sw-cleanup.js", dest: "/root/bootstrap/aw-sw-cleanup.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-worktime-panel.js", dest: "/root/bootstrap/aw-worktime-panel.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-host-groups.json", dest: "/root/bootstrap/aw-host-groups.json", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-ru-patch.js", dest: "/opt/detmir/bootstrap/aw-ru-patch.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-sw-cleanup.js", dest: "/opt/detmir/bootstrap/aw-sw-cleanup.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-worktime-panel.js", dest: "/opt/detmir/bootstrap/aw-worktime-panel.js", mode: "0644" }
|
||||
- { src: "{{ aw_repo_root }}/aw-server/aw-host-groups.json", dest: "/opt/detmir/bootstrap/aw-host-groups.json", mode: "0644" }
|
||||
|
||||
- name: Скопировать apply_webui_ru_patch.sh скрипт
|
||||
ansible.builtin.copy:
|
||||
@@ -655,14 +655,14 @@
|
||||
AW_WORKTIME_INFLUX_URL={{ aw_worktime_influx_url | default('') }}
|
||||
AW_WORKTIME_INFLUX_ORG={{ aw_worktime_influx_org | default('proxmox') }}
|
||||
AW_WORKTIME_INFLUX_BUCKET={{ aw_worktime_influx_bucket | default('aw_metrics') }}
|
||||
AW_WORKTIME_INFLUX_HOSTS={{ aw_worktime_influx_hosts | default('SHARKON2025') }}
|
||||
AW_WORKTIME_INFLUX_HOSTS={{ aw_worktime_influx_hosts | default('HOST-EXAMPLE') }}
|
||||
AW_WORKTIME_INFLUX_DAYS={{ aw_worktime_influx_days | default('today,yesterday') }}
|
||||
AW_WORKTIME_INFLUX_TOKEN={{ aw_effective_worktime_influx_token | default('') }}
|
||||
AW_DLP_INFLUX_ENABLED={{ 'true' if (aw_dlp_influx_enabled | default(false) | bool) else 'false' }}
|
||||
AW_DLP_INFLUX_URL={{ aw_dlp_influx_url | default('') }}
|
||||
AW_DLP_INFLUX_ORG={{ aw_dlp_influx_org | default('proxmox') }}
|
||||
AW_DLP_INFLUX_BUCKET={{ aw_dlp_influx_bucket | default('aw_metrics') }}
|
||||
AW_DLP_INFLUX_HOSTS={{ aw_dlp_influx_hosts | default('SHARKON2025') }}
|
||||
AW_DLP_INFLUX_HOSTS={{ aw_dlp_influx_hosts | default('HOST-EXAMPLE') }}
|
||||
AW_DLP_INFLUX_LOOKBACK_DAYS={{ aw_dlp_influx_lookback_days | default(30) }}
|
||||
AW_DLP_INFLUX_EVENT_LIMIT={{ aw_dlp_influx_event_limit | default(2000) }}
|
||||
AW_DLP_INFLUX_TOKEN={{ aw_effective_dlp_influx_token | default('') }}
|
||||
@@ -1748,7 +1748,7 @@
|
||||
|
||||
- name: Проверить наличие legacy root DB
|
||||
ansible.builtin.stat:
|
||||
path: /root/.local/share/activitywatch/aw-server-rust/sqlite.db
|
||||
path: /var/lib/activitywatch/aw-server-rust/sqlite.db
|
||||
register: aw_legacy_root_db
|
||||
|
||||
- name: Проверить наличие target DB
|
||||
@@ -1791,7 +1791,7 @@
|
||||
- name: Backup legacy root DB перед merge
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: /root/.local/share/activitywatch/aw-server-rust/sqlite.db
|
||||
src: /var/lib/activitywatch/aw-server-rust/sqlite.db
|
||||
dest: "{{ aw_server_data_dir }}/backups/db/legacy-root-{{ ansible_date_time.iso8601_basic_short }}.sqlite.db"
|
||||
owner: "{{ aw_server_user }}"
|
||||
group: "{{ aw_server_group }}"
|
||||
@@ -1805,7 +1805,7 @@
|
||||
argv:
|
||||
- /usr/local/bin/merge-aw-server-dbs
|
||||
- --base
|
||||
- /root/.local/share/activitywatch/aw-server-rust/sqlite.db
|
||||
- /var/lib/activitywatch/aw-server-rust/sqlite.db
|
||||
- --overlay
|
||||
- "{{ aw_server_db_path }}"
|
||||
- --output
|
||||
@@ -1843,7 +1843,7 @@
|
||||
- name: Скопировать legacy root DB в target DB если target ещё не существует
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
src: /root/.local/share/activitywatch/aw-server-rust/sqlite.db
|
||||
src: /var/lib/activitywatch/aw-server-rust/sqlite.db
|
||||
dest: "{{ aw_server_db_path }}"
|
||||
owner: "{{ aw_server_user }}"
|
||||
group: "{{ aw_server_group }}"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
aw_windows_package_version: "v0.13.2"
|
||||
aw_windows_package_url: "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.2/activitywatch-v0.13.2-windows-x86_64.zip"
|
||||
aw_windows_package_zip_path: ""
|
||||
aw_windows_domain: "SHARKON2025"
|
||||
aw_windows_domain: "HOST-EXAMPLE"
|
||||
aw_windows_builtin_administrator_name: "Администратор"
|
||||
aw_windows_users:
|
||||
- Администратор
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
DETMIR_PORTAL_STATUS_CMD=detmir-status --json
|
||||
DETMIR_PORTAL_CHECK_CMD=detmir-check --json
|
||||
DETMIR_PORTAL_FAILED_UNITS_CMD=systemctl --failed --no-pager
|
||||
DETMIR_PORTAL_WORKTIME_URL=http://10.10.10.13:5610
|
||||
DETMIR_PORTAL_ONE_C_URL=http://10.10.10.2:8710
|
||||
DETMIR_PORTAL_WORKTIME_URL=http://192.0.2.13:5610
|
||||
DETMIR_PORTAL_ONE_C_URL=http://192.0.2.2:8710
|
||||
DETMIR_PORTAL_TIMEOUT_SECONDS=10
|
||||
DETMIR_PORTAL_STATE_DIR=/var/lib/detmir-portal
|
||||
DETMIR_PORTAL_DLP_DB_PATH=/var/lib/activitywatch/dlp_warehouse.sqlite
|
||||
@@ -117,7 +117,7 @@
|
||||
vars:
|
||||
aw_repo_root: "{{ playbook_dir | dirname }}"
|
||||
aw_rust_release_dir: "{{ (lookup('env', 'CARGO_TARGET_DIR') | default(aw_repo_root + '/adk-rust/target', true)) + '/release' }}"
|
||||
detmir_evidence_bind: "{{ detmir_evidence_bind_override | default('10.10.10.13:8721') }}"
|
||||
detmir_evidence_bind: "{{ detmir_evidence_bind_override | default('192.0.2.13:8721') }}"
|
||||
detmir_evidence_env_path: "/etc/detmir-portal-evidence.env"
|
||||
detmir_evidence_upload_token_path: "/var/lib/activitywatch/dlp-evidence/upload-token"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
aw_windows_deploy_root: "C:\\Program Files\\AWatch-rus"
|
||||
aw_windows_evidence_sync_task_name: "ActivityWatch DLP Evidence Sync"
|
||||
aw_windows_evidence_sync_interval_minutes: 5
|
||||
aw_windows_evidence_sync_api_url: "http://10.10.10.13:8721/api/dlp/evidence/upload"
|
||||
aw_windows_evidence_sync_api_url: "http://192.0.2.13:8721/api/dlp/evidence/upload"
|
||||
aw_windows_evidence_sync_script: "{{ aw_windows_state_root }}\\sync-dlp-evidence-artifacts.ps1"
|
||||
aw_windows_evidence_sync_token_path: "{{ aw_windows_state_root }}\\dlp-evidence-upload-token.txt"
|
||||
aw_windows_evidence_sync_state_path: "{{ aw_windows_state_root }}\\dlp-evidence-sync-state.json"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
aw_file_1c_clickhouse_native_port: 9000
|
||||
aw_file_1c_company_api_host: "{{ ansible_host | default('127.0.0.1') }}"
|
||||
aw_file_1c_company_api_port: 8710
|
||||
aw_file_1c_manager_brief_grafana_url: "http://10.10.10.11:3000/d/1c-file-mgmt/1c-file-management-board?orgId=1"
|
||||
aw_file_1c_manager_brief_grafana_url: "http://192.0.2.11:3000/d/1c-file-mgmt/1c-file-management-board?orgId=1"
|
||||
aw_file_1c_manager_brief_state_dir: /opt/activitywatch/clickhouse-1c/state/manager-brief
|
||||
aw_file_1c_manager_brief_model: gpt-5.3-codex
|
||||
aw_file_1c_manager_brief_codex_user: igor
|
||||
|
||||
@@ -134,9 +134,9 @@
|
||||
$user = Split-Path $profile.LocalPath -Leaf
|
||||
$sshDir = Join-Path $profile.LocalPath '.ssh'
|
||||
$dst = Join-Path $sshDir 'awops_ed25519'
|
||||
$grantDir = 'SHARKON2025\' + $user + ':(OI)(CI)(F)'
|
||||
$grantRead = 'SHARKON2025\' + $user + ':(R)'
|
||||
$grantModify = 'SHARKON2025\' + $user + ':(M)'
|
||||
$grantDir = 'HOST-EXAMPLE\' + $user + ':(OI)(CI)(F)'
|
||||
$grantRead = 'HOST-EXAMPLE\' + $user + ':(R)'
|
||||
$grantModify = 'HOST-EXAMPLE\' + $user + ':(M)'
|
||||
|
||||
New-Item -ItemType Directory -Path $sshDir -Force | Out-Null
|
||||
& icacls.exe $sshDir /grant $grantDir | Out-Null
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
grafana_check_dashboard_uid: "{{ detmir_grafana_check_dashboard_uid | default('detmir-aw-main') }}"
|
||||
grafana_check_dashboard_file_src: "{{ aw_repo_root }}/grafana/detmir-aw-main-dashboard.json"
|
||||
grafana_check_dashboard_file_dest: /etc/grafana/provisioning/dashboards/aw/detmir-aw-main.json
|
||||
grafana_check_host: "{{ detmir_grafana_check_host | default('SHARKON2025') }}"
|
||||
grafana_check_host: "{{ detmir_grafana_check_host | default('HOST-EXAMPLE') }}"
|
||||
grafana_check_max_freshness_minutes: "{{ detmir_grafana_check_max_freshness_minutes | default(360) }}"
|
||||
grafana_check_on_calendar: "{{ detmir_grafana_check_on_calendar | default('*:0/15') }}"
|
||||
|
||||
|
||||
@@ -23,84 +23,84 @@
|
||||
title: "Proxmox VE"
|
||||
category: "Host"
|
||||
description: "Основная панель управления Proxmox VE."
|
||||
target_url: "https://10.10.10.2:8006/"
|
||||
target_url: "https://192.0.2.2:8006/"
|
||||
external_enabled: false
|
||||
- slug: "file1c-brief"
|
||||
title: "1C Executive Brief"
|
||||
category: "Management"
|
||||
description: "Сводка по предприятиям и рискам 1С."
|
||||
target_url: "http://10.10.10.2:8710/manager/brief"
|
||||
target_url: "http://192.0.2.2:8710/manager/brief"
|
||||
proxy_path: "/r/file1c/brief"
|
||||
proxy_target_url: "http://10.10.10.2:8710/manager/brief"
|
||||
proxy_target_url: "http://192.0.2.2:8710/manager/brief"
|
||||
external_enabled: true
|
||||
- slug: "file1c-actions"
|
||||
title: "1C Management Actions"
|
||||
category: "Management"
|
||||
description: "Очередь действий по предприятиям в 1С."
|
||||
target_url: "http://10.10.10.2:8710/manager/actions"
|
||||
target_url: "http://192.0.2.2:8710/manager/actions"
|
||||
proxy_path: "/r/file1c/actions"
|
||||
proxy_target_url: "http://10.10.10.2:8710/manager/actions"
|
||||
proxy_target_url: "http://192.0.2.2:8710/manager/actions"
|
||||
external_enabled: true
|
||||
- slug: "file1c-finance"
|
||||
title: "1C Financial Reporting"
|
||||
category: "Management"
|
||||
description: "Первый financial board по файловой 1С с разделением ledger/proxy."
|
||||
target_url: "http://10.10.10.11:3000/d/1c-file-finance/1c-file-financial-reporting?orgId=1"
|
||||
target_url: "http://192.0.2.11:3000/d/1c-file-finance/1c-file-financial-reporting?orgId=1"
|
||||
proxy_path: "/d/1c-file-finance/1c-file-financial-reporting?orgId=1"
|
||||
external_enabled: true
|
||||
- slug: "file1c-telemetry"
|
||||
title: "1C Telemetry Board"
|
||||
category: "Dashboards"
|
||||
description: "Read-only telemetry экран по состоянию файловых баз, reglog и host."
|
||||
target_url: "http://10.10.10.11:3000/d/1c-file-telemetry/1c-file-telemetry-board?orgId=1"
|
||||
target_url: "http://192.0.2.11:3000/d/1c-file-telemetry/1c-file-telemetry-board?orgId=1"
|
||||
proxy_path: "/d/1c-file-telemetry/1c-file-telemetry-board?orgId=1"
|
||||
external_enabled: true
|
||||
- slug: "grafana-1c"
|
||||
title: "Grafana 1C"
|
||||
category: "Dashboards"
|
||||
description: "Рабочий file-1c dashboard contour в внешней Grafana."
|
||||
target_url: "http://10.10.10.11:3000/d/1c-file-mgmt/1c-file-management-board?orgId=1"
|
||||
target_url: "http://192.0.2.11:3000/d/1c-file-mgmt/1c-file-management-board?orgId=1"
|
||||
proxy_path: "/d/1c-file-mgmt/1c-file-management-board?orgId=1"
|
||||
external_enabled: true
|
||||
- slug: "clickhouse-http"
|
||||
title: "ClickHouse HTTP"
|
||||
category: "Data"
|
||||
description: "HTTP endpoint ClickHouse для file-1C analytics."
|
||||
target_url: "http://10.10.10.2:8123/"
|
||||
target_url: "http://192.0.2.2:8123/"
|
||||
external_enabled: false
|
||||
- slug: "influxdb"
|
||||
title: "InfluxDB"
|
||||
category: "Data"
|
||||
description: "InfluxDB LXC на CT 200."
|
||||
target_url: "http://10.10.10.10:8086/"
|
||||
target_url: "http://192.0.2.10:8086/"
|
||||
external_enabled: false
|
||||
- slug: "grafana-core"
|
||||
title: "Grafana Core"
|
||||
category: "Dashboards"
|
||||
description: "Отдельный Grafana CT 201."
|
||||
target_url: "http://10.10.10.11:3000/"
|
||||
target_url: "http://192.0.2.11:3000/"
|
||||
proxy_path: "/dashboards"
|
||||
external_enabled: true
|
||||
- slug: "loki-alloy"
|
||||
title: "Grafana Alloy"
|
||||
category: "Logs"
|
||||
description: "Web UI Alloy на CT 202."
|
||||
target_url: "http://10.10.10.12:12345/"
|
||||
target_url: "http://192.0.2.12:12345/"
|
||||
external_enabled: false
|
||||
- slug: "aw-ui"
|
||||
title: "AW-rus UI"
|
||||
category: "Operations"
|
||||
description: "Основной ActivityWatch-Russian Web UI на CT 203."
|
||||
target_url: "http://10.10.10.13:5600/"
|
||||
target_url: "http://192.0.2.13:5600/"
|
||||
proxy_path: "/r/aw/"
|
||||
external_enabled: true
|
||||
- slug: "aw-worktime"
|
||||
title: "AW-rus Management Report"
|
||||
category: "Operations"
|
||||
description: "Управленческий worktime/report API на CT 203."
|
||||
target_url: "http://10.10.10.13:5610/reports/worktime/management?format=html&host=SHARKON2025"
|
||||
target_url: "http://192.0.2.13:5610/reports/worktime/management?format=html&host=HOST-EXAMPLE"
|
||||
proxy_path: "/r/aw-worktime"
|
||||
proxy_target_url: "http://10.10.10.13:5610/reports/worktime/management?format=html&host=SHARKON2025"
|
||||
proxy_target_url: "http://192.0.2.13:5610/reports/worktime/management?format=html&host=HOST-EXAMPLE"
|
||||
external_enabled: true
|
||||
- slug: "detmir-portal"
|
||||
title: "DetMir Portal"
|
||||
|
||||
@@ -201,11 +201,11 @@
|
||||
TELEGRAM_DEFAULT_CHAT_ID={{ tsj_bot_default_chat_id }}
|
||||
HTTPS_PROXY={{ tsj_bot_https_proxy_url | default(tsj_bot_telegram_proxy_url | default('http://127.0.0.1:11090')) }}
|
||||
HTTP_PROXY={{ tsj_bot_http_proxy_url | default(tsj_bot_telegram_proxy_url | default('http://127.0.0.1:11090')) }}
|
||||
NO_PROXY={{ tsj_bot_no_proxy | default('localhost,127.0.0.1,10.10.10.0/24') }}
|
||||
NODE_13_HOST={{ tsj_bot_node_13_host | default('10.10.10.13') }}
|
||||
NODE_16_HOST={{ tsj_bot_node_16_host | default('10.10.10.16') }}
|
||||
NODE_13_URL={{ tsj_bot_node_13_url | default('http://10.10.10.13:5600/api/0/info') }}
|
||||
NODE_16_URL={{ tsj_bot_node_16_url | default('http://10.10.10.16/') }}
|
||||
NO_PROXY={{ tsj_bot_no_proxy | default('localhost,127.0.0.1,192.0.2.0/24') }}
|
||||
NODE_13_HOST={{ tsj_bot_node_13_host | default('192.0.2.13') }}
|
||||
NODE_16_HOST={{ tsj_bot_node_16_host | default('192.0.2.16') }}
|
||||
NODE_13_URL={{ tsj_bot_node_13_url | default('http://192.0.2.13:5600/api/0/info') }}
|
||||
NODE_16_URL={{ tsj_bot_node_16_url | default('http://192.0.2.16/') }}
|
||||
NODE_16_ENABLED={{ tsj_bot_node_16_enabled | default('false') }}
|
||||
INFRA_ADMIN_ROOT={{ tsj_bot_runtime_root }}
|
||||
CHECK_SCRIPT={{ tsj_bot_check_script | default(tsj_bot_runtime_root + '/scripts/system_self_support.sh --check') }}
|
||||
@@ -254,24 +254,24 @@
|
||||
UPDATE_TARGETS={{ tsj_bot_update_targets | default('auto') }}
|
||||
DETMIR_AI_STATE_FILE={{ tsj_bot_detmir_ai_state_file | default('/var/lib/detmir-ai/latest-state.json') }}
|
||||
TSJ_GUARDIAN_STATUS_BIN={{ tsj_bot_guardian_status_bin | default('/usr/local/bin/tsj-guardian-status') }}
|
||||
AW_RUS_API_BASE={{ tsj_bot_aw_rus_api_base | default('http://10.10.10.13:5600/api/0') }}
|
||||
AW_RUS_WORKTIME_BASE={{ tsj_bot_aw_rus_worktime_base | default('http://10.10.10.13:5610') }}
|
||||
AW_DLP_POLICY_API_BASE={{ tsj_bot_aw_dlp_policy_api_base | default('http://10.10.10.13:5601/api/0') }}
|
||||
AW_RUS_API_BASE={{ tsj_bot_aw_rus_api_base | default('http://192.0.2.13:5600/api/0') }}
|
||||
AW_RUS_WORKTIME_BASE={{ tsj_bot_aw_rus_worktime_base | default('http://192.0.2.13:5610') }}
|
||||
AW_DLP_POLICY_API_BASE={{ tsj_bot_aw_dlp_policy_api_base | default('http://192.0.2.13:5601/api/0') }}
|
||||
AW_DLP_POLICY_ACTOR={{ tsj_bot_aw_dlp_policy_actor | default('tsj-guardian-bot') }}
|
||||
AW_RUS_WORKTIME_HEAL_CMD={{ tsj_bot_aw_rus_worktime_heal_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13 'sudo -n /usr/local/bin/aw-worktime-autoheal-rust && sudo -n systemctl reset-failed aw-worktime-ui-bridge.service && sudo -n systemctl start aw-worktime-ui-bridge.service'") }}
|
||||
AW_RUS_DLP_HEAL_CMD={{ tsj_bot_aw_rus_dlp_heal_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13 'sudo -n systemctl restart activitywatch-server.service && (sudo -n systemctl start activitywatch-dlp-aggregator.service || true) && sudo -n /usr/local/bin/aw-health-check && sudo -n /usr/local/bin/dlp-health-check'") }}
|
||||
AW_RUS_CASE_API_BASE={{ tsj_bot_aw_rus_case_api_base | default('http://10.10.10.13:5602') }}
|
||||
AW_RUS_WORKTIME_HEAL_CMD={{ tsj_bot_aw_rus_worktime_heal_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13 'sudo -n /usr/local/bin/aw-worktime-autoheal-rust && sudo -n systemctl reset-failed aw-worktime-ui-bridge.service && sudo -n systemctl start aw-worktime-ui-bridge.service'") }}
|
||||
AW_RUS_DLP_HEAL_CMD={{ tsj_bot_aw_rus_dlp_heal_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13 'sudo -n systemctl restart activitywatch-server.service && (sudo -n systemctl start activitywatch-dlp-aggregator.service || true) && sudo -n /usr/local/bin/aw-health-check && sudo -n /usr/local/bin/dlp-health-check'") }}
|
||||
AW_RUS_CASE_API_BASE={{ tsj_bot_aw_rus_case_api_base | default('http://192.0.2.13:5602') }}
|
||||
AW_RUS_HAYABUSA_ENABLED={{ tsj_bot_aw_rus_hayabusa_enabled | default('true') }}
|
||||
AW_RUS_HAYABUSA_SSH_CMD={{ tsj_bot_aw_rus_hayabusa_ssh_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13") }}
|
||||
AW_RUS_HOST={{ tsj_bot_aw_rus_host | default('SHARKON2025') }}
|
||||
AW_RUS_HAYABUSA_SSH_CMD={{ tsj_bot_aw_rus_hayabusa_ssh_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13") }}
|
||||
AW_RUS_HOST={{ tsj_bot_aw_rus_host | default('HOST-EXAMPLE') }}
|
||||
AW_RUS_PRIMARY_USER={{ tsj_bot_aw_rus_primary_user | default('USER1') }}
|
||||
AW_RUS_STALE_SEC={{ tsj_bot_aw_rus_stale_sec | default(900) }}
|
||||
AW_RUS_SLO_ENABLED={{ tsj_bot_aw_rus_slo_enabled | default('true') }}
|
||||
AW_RUS_SLO_ALERT_WINDOW={{ tsj_bot_aw_rus_slo_alert_window | default('24h') }}
|
||||
AW_RUS_SLO_MIN_SAMPLES={{ tsj_bot_aw_rus_slo_min_samples | default(4) }}
|
||||
AW_RUS_SLO_MAX_AGE_SEC={{ tsj_bot_aw_rus_slo_max_age_sec | default(90) }}
|
||||
AW_RUS_SLO_SUMMARY_CMD={{ tsj_bot_aw_rus_slo_summary_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13 'cat /var/lib/activitywatch/slo/aw-slo-summary.json'") }}
|
||||
AW_RUS_WINDOWS_HOST={{ tsj_bot_aw_rus_windows_host | default(hostvars[(groups['aw_windows'] | first)].ansible_host | default('192.168.100.18')) }}
|
||||
AW_RUS_SLO_SUMMARY_CMD={{ tsj_bot_aw_rus_slo_summary_cmd | default("ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13 'cat /var/lib/activitywatch/slo/aw-slo-summary.json'") }}
|
||||
AW_RUS_WINDOWS_HOST={{ tsj_bot_aw_rus_windows_host | default(hostvars[(groups['aw_windows'] | first)].ansible_host | default('198.51.100.18')) }}
|
||||
AW_RUS_WINDOWS_SSH_USER={{ tsj_bot_aw_rus_windows_ssh_user | default(hostvars[(groups['aw_windows'] | first)].ansible_user | default('Администратор')) }}
|
||||
AW_RUS_WINDOWS_SSH_PASSWORD={{ tsj_bot_aw_rus_windows_ssh_password | default(hostvars[(groups['aw_windows'] | first)].ansible_password | default('')) }}
|
||||
AW_RUS_WINDOWS_CONFIG_PATH={{ tsj_bot_aw_rus_windows_config_path | default('C:\ProgramData\AWatch-rus\deployment-config.json') }}
|
||||
@@ -301,24 +301,24 @@
|
||||
group: "{{ tsj_bot_group }}"
|
||||
mode: "0640"
|
||||
loop:
|
||||
- { key: "AW_RUS_API_BASE", value: "{{ tsj_bot_aw_rus_api_base | default('http://10.10.10.13:5600/api/0') }}" }
|
||||
- { key: "AW_RUS_WORKTIME_BASE", value: "{{ tsj_bot_aw_rus_worktime_base | default('http://10.10.10.13:5610') }}" }
|
||||
- { key: "AW_DLP_POLICY_API_BASE", value: "{{ tsj_bot_aw_dlp_policy_api_base | default('http://10.10.10.13:5601/api/0') }}" }
|
||||
- { key: "AW_RUS_API_BASE", value: "{{ tsj_bot_aw_rus_api_base | default('http://192.0.2.13:5600/api/0') }}" }
|
||||
- { key: "AW_RUS_WORKTIME_BASE", value: "{{ tsj_bot_aw_rus_worktime_base | default('http://192.0.2.13:5610') }}" }
|
||||
- { key: "AW_DLP_POLICY_API_BASE", value: "{{ tsj_bot_aw_dlp_policy_api_base | default('http://192.0.2.13:5601/api/0') }}" }
|
||||
- { key: "AW_DLP_POLICY_ACTOR", value: "{{ tsj_bot_aw_dlp_policy_actor | default('tsj-guardian-bot') }}" }
|
||||
- { key: "AW_RUS_WORKTIME_HEAL_CMD", value: "{{ tsj_bot_aw_rus_worktime_heal_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13 'sudo -n /usr/local/bin/aw-worktime-autoheal-rust && sudo -n systemctl reset-failed aw-worktime-ui-bridge.service && sudo -n systemctl start aw-worktime-ui-bridge.service'\") }}" }
|
||||
- { key: "AW_RUS_DLP_HEAL_CMD", value: "{{ tsj_bot_aw_rus_dlp_heal_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13 'sudo -n systemctl restart activitywatch-server.service && (sudo -n systemctl start activitywatch-dlp-aggregator.service || true) && sudo -n /usr/local/bin/aw-health-check && sudo -n /usr/local/bin/dlp-health-check'\") }}" }
|
||||
- { key: "AW_RUS_CASE_API_BASE", value: "{{ tsj_bot_aw_rus_case_api_base | default('http://10.10.10.13:5602') }}" }
|
||||
- { key: "AW_RUS_WORKTIME_HEAL_CMD", value: "{{ tsj_bot_aw_rus_worktime_heal_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13 'sudo -n /usr/local/bin/aw-worktime-autoheal-rust && sudo -n systemctl reset-failed aw-worktime-ui-bridge.service && sudo -n systemctl start aw-worktime-ui-bridge.service'\") }}" }
|
||||
- { key: "AW_RUS_DLP_HEAL_CMD", value: "{{ tsj_bot_aw_rus_dlp_heal_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13 'sudo -n systemctl restart activitywatch-server.service && (sudo -n systemctl start activitywatch-dlp-aggregator.service || true) && sudo -n /usr/local/bin/aw-health-check && sudo -n /usr/local/bin/dlp-health-check'\") }}" }
|
||||
- { key: "AW_RUS_CASE_API_BASE", value: "{{ tsj_bot_aw_rus_case_api_base | default('http://192.0.2.13:5602') }}" }
|
||||
- { key: "AW_RUS_HAYABUSA_ENABLED", value: "{{ tsj_bot_aw_rus_hayabusa_enabled | default('true') }}" }
|
||||
- { key: "AW_RUS_HAYABUSA_SSH_CMD", value: "{{ tsj_bot_aw_rus_hayabusa_ssh_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13\") }}" }
|
||||
- { key: "AW_RUS_HOST", value: "{{ tsj_bot_aw_rus_host | default('SHARKON2025') }}" }
|
||||
- { key: "AW_RUS_HAYABUSA_SSH_CMD", value: "{{ tsj_bot_aw_rus_hayabusa_ssh_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13\") }}" }
|
||||
- { key: "AW_RUS_HOST", value: "{{ tsj_bot_aw_rus_host | default('HOST-EXAMPLE') }}" }
|
||||
- { key: "AW_RUS_PRIMARY_USER", value: "{{ tsj_bot_aw_rus_primary_user | default('USER1') }}" }
|
||||
- { key: "AW_RUS_STALE_SEC", value: "{{ tsj_bot_aw_rus_stale_sec | default(900) }}" }
|
||||
- { key: "AW_RUS_SLO_ENABLED", value: "{{ tsj_bot_aw_rus_slo_enabled | default('true') }}" }
|
||||
- { key: "AW_RUS_SLO_ALERT_WINDOW", value: "{{ tsj_bot_aw_rus_slo_alert_window | default('24h') }}" }
|
||||
- { key: "AW_RUS_SLO_MIN_SAMPLES", value: "{{ tsj_bot_aw_rus_slo_min_samples | default(4) }}" }
|
||||
- { key: "AW_RUS_SLO_MAX_AGE_SEC", value: "{{ tsj_bot_aw_rus_slo_max_age_sec | default(90) }}" }
|
||||
- { key: "AW_RUS_SLO_SUMMARY_CMD", value: "{{ tsj_bot_aw_rus_slo_summary_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@10.10.10.13 'cat /var/lib/activitywatch/slo/aw-slo-summary.json'\") }}" }
|
||||
- { key: "AW_RUS_WINDOWS_HOST", value: "{{ tsj_bot_aw_rus_windows_host | default(hostvars[(groups['aw_windows'] | first)].ansible_host | default('192.168.100.18')) }}" }
|
||||
- { key: "AW_RUS_SLO_SUMMARY_CMD", value: "{{ tsj_bot_aw_rus_slo_summary_cmd | default(\"ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new igor@192.0.2.13 'cat /var/lib/activitywatch/slo/aw-slo-summary.json'\") }}" }
|
||||
- { key: "AW_RUS_WINDOWS_HOST", value: "{{ tsj_bot_aw_rus_windows_host | default(hostvars[(groups['aw_windows'] | first)].ansible_host | default('198.51.100.18')) }}" }
|
||||
- { key: "AW_RUS_WINDOWS_SSH_USER", value: "{{ tsj_bot_aw_rus_windows_ssh_user | default(hostvars[(groups['aw_windows'] | first)].ansible_user | default('Администратор')) }}" }
|
||||
- { key: "AW_RUS_WINDOWS_SSH_PASSWORD", value: "{{ tsj_bot_aw_rus_windows_ssh_password | default(hostvars[(groups['aw_windows'] | first)].ansible_password | default('')) }}" }
|
||||
- { key: "AW_RUS_WINDOWS_CONFIG_PATH", value: "{{ tsj_bot_aw_rus_windows_config_path | default('C:\\ProgramData\\AWatch-rus\\deployment-config.json') }}" }
|
||||
|
||||
@@ -16,19 +16,19 @@ aw_worktime_influx_enabled: false
|
||||
aw_worktime_influx_url: "http://<INFLUXDB_HOST>:8086"
|
||||
aw_worktime_influx_org: "proxmox"
|
||||
aw_worktime_influx_bucket: "aw_metrics"
|
||||
aw_worktime_influx_hosts: "SHARKON2025"
|
||||
aw_worktime_influx_hosts: "HOST-EXAMPLE"
|
||||
aw_worktime_influx_days: "today,yesterday"
|
||||
aw_worktime_influx_token: ""
|
||||
aw_dlp_influx_enabled: false
|
||||
aw_dlp_influx_url: "http://<INFLUXDB_HOST>:8086"
|
||||
aw_dlp_influx_org: "proxmox"
|
||||
aw_dlp_influx_bucket: "aw_metrics"
|
||||
aw_dlp_influx_hosts: "SHARKON2025"
|
||||
aw_dlp_influx_hosts: "HOST-EXAMPLE"
|
||||
aw_dlp_influx_lookback_days: 30
|
||||
aw_dlp_influx_event_limit: 2000
|
||||
aw_dlp_influx_token: ""
|
||||
aw_monitored_windows_host: "<WINDOWS_HOST>"
|
||||
aw_monitored_windows_hostname: "SHARKON2025"
|
||||
aw_monitored_windows_hostname: "HOST-EXAMPLE"
|
||||
aw_rus_health_worktime_api_base: "http://127.0.0.1:5610"
|
||||
aw_rus_health_state_dir: "{{ aw_server_data_dir }}/health"
|
||||
aw_rus_health_validation_dir: "{{ aw_rus_health_state_dir }}/windows-validation"
|
||||
@@ -67,7 +67,7 @@ aw_worktime_from: "00:00"
|
||||
aw_worktime_to: "17:00"
|
||||
aw_worktime_start_of_day: "{{ aw_worktime_from }}"
|
||||
aw_server_always_active_pattern: "aw-watcher-window"
|
||||
aw_server_landingpage: "/#/activity/SHARKON2025/view/"
|
||||
aw_server_landingpage: "/#/activity/HOST-EXAMPLE/view/"
|
||||
aw_health_strict_fileops: 0
|
||||
|
||||
aw_dlp_policy_engine_enabled: true
|
||||
|
||||
@@ -13,22 +13,22 @@ aw_server_public_host: "{{ (hostvars[aw_server_inventory_host].ansible_host | de
|
||||
aw_worktime_report_base: "http://{{ aw_server_public_host }}:5610"
|
||||
aw_worktime_timezone: "Europe/Moscow"
|
||||
aw_worktime_influx_enabled: true
|
||||
aw_worktime_influx_url: "http://10.10.10.10:8086"
|
||||
aw_worktime_influx_url: "http://192.0.2.10:8086"
|
||||
aw_worktime_influx_org: "proxmox"
|
||||
aw_worktime_influx_bucket: "aw_metrics"
|
||||
aw_worktime_influx_hosts: "SHARKON2025"
|
||||
aw_worktime_influx_hosts: "HOST-EXAMPLE"
|
||||
aw_worktime_influx_days: "today,yesterday"
|
||||
aw_worktime_influx_token: "{{ lookup('env', 'AW_WORKTIME_INFLUX_TOKEN') }}"
|
||||
aw_dlp_influx_enabled: true
|
||||
aw_dlp_influx_url: "http://10.10.10.10:8086"
|
||||
aw_dlp_influx_url: "http://192.0.2.10:8086"
|
||||
aw_dlp_influx_org: "proxmox"
|
||||
aw_dlp_influx_bucket: "aw_metrics"
|
||||
aw_dlp_influx_hosts: "SHARKON2025"
|
||||
aw_dlp_influx_hosts: "HOST-EXAMPLE"
|
||||
aw_dlp_influx_lookback_days: 30
|
||||
aw_dlp_influx_event_limit: 2000
|
||||
aw_dlp_influx_token: "{{ lookup('env', 'AW_DLP_INFLUX_TOKEN') }}"
|
||||
aw_monitored_windows_host: "192.168.100.18"
|
||||
aw_monitored_windows_hostname: "SHARKON2025"
|
||||
aw_monitored_windows_host: "198.51.100.18"
|
||||
aw_monitored_windows_hostname: "HOST-EXAMPLE"
|
||||
aw_rus_health_worktime_api_base: "http://127.0.0.1:5610"
|
||||
aw_rus_health_state_dir: "{{ aw_server_data_dir }}/health"
|
||||
aw_rus_health_validation_dir: "{{ aw_rus_health_state_dir }}/windows-validation"
|
||||
@@ -74,5 +74,5 @@ aw_worktime_from: "00:00"
|
||||
aw_worktime_to: "17:00"
|
||||
aw_worktime_start_of_day: "{{ aw_worktime_from }}"
|
||||
aw_server_always_active_pattern: "aw-watcher-window"
|
||||
aw_server_landingpage: "/#/activity/SHARKON2025/view/"
|
||||
aw_server_landingpage: "/#/activity/HOST-EXAMPLE/view/"
|
||||
aw_health_strict_fileops: 0
|
||||
|
||||
@@ -14,7 +14,7 @@ aw_windows_package_version: "v0.13.2"
|
||||
aw_windows_package_url: "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.2/activitywatch-v0.13.2-windows-x86_64.zip"
|
||||
aw_windows_package_zip_path: ""
|
||||
|
||||
aw_windows_domain: "SHARKON2025"
|
||||
aw_windows_domain: "HOST-EXAMPLE"
|
||||
aw_windows_builtin_administrator_name: "Администратор"
|
||||
aw_windows_users:
|
||||
- Администратор
|
||||
|
||||
@@ -54,7 +54,7 @@ tsj_bot_aw_rus_dlp_heal_cmd: "sshpass -p 'CHANGE_ME' ssh -o PubkeyAuthentication
|
||||
tsj_bot_aw_rus_case_api_base: "http://<AW_SERVER_HOST>:5602"
|
||||
tsj_bot_aw_rus_hayabusa_enabled: "true"
|
||||
tsj_bot_aw_rus_hayabusa_ssh_cmd: "sshpass -p 'CHANGE_ME' ssh -o PubkeyAuthentication=no -o StrictHostKeyChecking=no igor@<AW_SERVER_HOST>"
|
||||
tsj_bot_aw_rus_host: "SHARKON2025"
|
||||
tsj_bot_aw_rus_host: "HOST-EXAMPLE"
|
||||
tsj_bot_aw_rus_primary_user: "USER1"
|
||||
tsj_bot_aw_rus_stale_sec: 900
|
||||
tsj_bot_aw_rus_slo_enabled: "true"
|
||||
|
||||
@@ -12,7 +12,7 @@ aw_windows_hayabusa_auto_upload_task_name: "ActivityWatch Hayabusa Upload"
|
||||
aw_windows_package_version: "v0.13.2"
|
||||
aw_windows_package_url: "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.2/activitywatch-v0.13.2-windows-x86_64.zip"
|
||||
aw_windows_package_zip_path: ""
|
||||
aw_windows_domain: "SHARKON2025"
|
||||
aw_windows_domain: "HOST-EXAMPLE"
|
||||
# Localized name of the built-in local Administrator account (SID ending in -500).
|
||||
# On the current Russian Windows host this must stay "Администратор";
|
||||
# do not replace it with "Administrator" unless the target OS account is actually named that way.
|
||||
@@ -32,7 +32,7 @@ aw_windows_extra_users: []
|
||||
# Единые Windows/RDP пути: те же, что использует InnoSetup.
|
||||
aw_windows_install_root: "C:\\Program Files\\AWatch-rus\\bin"
|
||||
aw_windows_state_root: "C:\\ProgramData\\AWatch-rus"
|
||||
aw_windows_hostname_override: "" # Например: SHARKON2025
|
||||
aw_windows_hostname_override: "" # Например: HOST-EXAMPLE
|
||||
aw_windows_afk_enabled: true
|
||||
aw_windows_window_enabled: true
|
||||
aw_windows_file_ops_enabled: true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[proxmox]
|
||||
pve-main ansible_host=192.168.10.2 ansible_user=root ansible_port=22
|
||||
pve-main ansible_host=198.51.100.2 ansible_user=root ansible_port=22
|
||||
|
||||
[aw_server]
|
||||
aw-ct ansible_host=10.20.30.13 ansible_user=root ansible_port=22
|
||||
@@ -9,7 +9,7 @@ aw-ct ansible_host=10.20.30.13 ansible_user=root ansible_port=22
|
||||
win-node1 ansible_host=<WINDOWS_HOST> ansible_user=Администратор ansible_password=CHANGE_ME ansible_connection=winrm ansible_winrm_transport=ntlm ansible_port=5985 ansible_winrm_server_cert_validation=ignore
|
||||
|
||||
[aw_pfsense_pollers]
|
||||
# pfsense-poller1 ansible_host=192.168.100.30 ansible_user=root ansible_port=22
|
||||
# pfsense-poller1 ansible_host=198.51.100.30 ansible_user=root ansible_port=22
|
||||
|
||||
[grafana]
|
||||
# Для API-import playbook достаточно указать grafana_url.
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -y curl ca-certificates bash unzip xz-utils jq rsync openssh-server python3
|
||||
mkdir -p /root/bootstrap/settings /etc/activitywatch
|
||||
mkdir -p /opt/detmir/bootstrap/settings /etc/activitywatch
|
||||
systemctl enable ssh || true
|
||||
systemctl restart ssh || true
|
||||
register: ct_bootstrap_result
|
||||
@@ -142,7 +142,7 @@
|
||||
- push
|
||||
- "{{ ct_id }}"
|
||||
- "{{ proxmox_bootstrap_dir }}/{{ item }}"
|
||||
- "/root/bootstrap/{{ item }}"
|
||||
- "/opt/detmir/bootstrap/{{ item }}"
|
||||
loop: "{{ aw_bootstrap_files }}"
|
||||
|
||||
- name: Записать AW server env во временный каталог Proxmox host
|
||||
@@ -196,9 +196,9 @@
|
||||
- -lc
|
||||
- |
|
||||
set -euo pipefail
|
||||
chmod +x /root/bootstrap/install_aw_server.sh /root/bootstrap/apply_webui_ru_patch.sh
|
||||
bash /root/bootstrap/install_aw_server.sh
|
||||
bash /root/bootstrap/apply_webui_ru_patch.sh
|
||||
chmod +x /opt/detmir/bootstrap/install_aw_server.sh /opt/detmir/bootstrap/apply_webui_ru_patch.sh
|
||||
bash /opt/detmir/bootstrap/install_aw_server.sh
|
||||
bash /opt/detmir/bootstrap/apply_webui_ru_patch.sh
|
||||
systemctl restart activitywatch-server.service
|
||||
|
||||
- name: Проверить AW API изнутри CT
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
<h1>Proxmox Web Gateway</h1>
|
||||
<p class="lead">
|
||||
Единая стартовая точка для web-сервисов контура на Proxmox host
|
||||
<strong>10.10.10.2</strong>. Внешний вход закрыт gateway-auth,
|
||||
<strong>192.0.2.2</strong>. Внешний вход закрыт gateway-auth,
|
||||
а основные операторские страницы идут через reverse proxy без выдачи
|
||||
внутренних адресов наружу.
|
||||
</p>
|
||||
|
||||
@@ -6,7 +6,7 @@ map $http_upgrade $connection_upgrade {
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name {{ proxmox_web_gateway_public_hostname }} 10.10.10.2 <WAN_OR_EXTERNAL_IP> _;
|
||||
server_name {{ proxmox_web_gateway_public_hostname }} 192.0.2.2 <WAN_OR_EXTERNAL_IP> _;
|
||||
|
||||
access_log /var/log/nginx/proxmox-web-gateway.access.log;
|
||||
error_log /var/log/nginx/proxmox-web-gateway.error.log;
|
||||
@@ -17,7 +17,7 @@ server {
|
||||
server {
|
||||
listen 443 ssl http2 default_server;
|
||||
listen [::]:443 ssl http2 default_server;
|
||||
server_name {{ proxmox_web_gateway_public_hostname }} 10.10.10.2 <WAN_OR_EXTERNAL_IP> _;
|
||||
server_name {{ proxmox_web_gateway_public_hostname }} 192.0.2.2 <WAN_OR_EXTERNAL_IP> _;
|
||||
|
||||
access_log /var/log/nginx/proxmox-web-gateway.access.log;
|
||||
error_log /var/log/nginx/proxmox-web-gateway.error.log;
|
||||
@@ -67,32 +67,32 @@ server {
|
||||
location /api/0/ {
|
||||
proxy_set_header Origin "";
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /r/grafana/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000/;
|
||||
proxy_redirect http://10.10.10.11:3000/ /r/grafana/;
|
||||
proxy_pass http://192.0.2.11:3000/;
|
||||
proxy_redirect http://192.0.2.11:3000/ /r/grafana/;
|
||||
}
|
||||
|
||||
location = /login {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location = /logout {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /public/ {
|
||||
proxy_set_header Origin "";
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
@@ -103,138 +103,138 @@ server {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_set_header Origin "";
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /apis/ {
|
||||
proxy_set_header Origin "";
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /d/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /dashboards {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /dashboard/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /avatar/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /profile/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /org/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /user/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /plugins/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /explore {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /alerting/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /connections/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /datasources/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.11:3000;
|
||||
proxy_pass http://192.0.2.11:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /r/aw/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600/;
|
||||
proxy_redirect http://10.10.10.13:5600/ /r/aw/;
|
||||
proxy_pass http://192.0.2.13:5600/;
|
||||
proxy_redirect http://192.0.2.13:5600/ /r/aw/;
|
||||
}
|
||||
|
||||
location /reports/worktime/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5610;
|
||||
proxy_pass http://192.0.2.13:5610;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location = /dark.css {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /css/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location = /js/aw-worktime-panel.js {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
sub_filter_once off;
|
||||
sub_filter_types application/javascript text/javascript;
|
||||
sub_filter 'http://10.10.10.13:5610' '';
|
||||
sub_filter 'http://192.0.2.13:5610' '';
|
||||
}
|
||||
|
||||
location /js/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /img/ {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ server {
|
||||
auth_basic off;
|
||||
proxy_set_header Origin "";
|
||||
proxy_set_header Authorization "";
|
||||
proxy_pass http://10.10.10.13:5600;
|
||||
proxy_pass http://192.0.2.13:5600;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ server {
|
||||
location ^~ /portal/api/dlp/evidence {
|
||||
proxy_set_header Authorization "";
|
||||
proxy_set_header X-Remote-User $remote_user;
|
||||
proxy_pass http://10.10.10.13:8721/api/dlp/evidence;
|
||||
proxy_pass http://192.0.2.13:8721/api/dlp/evidence;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user