From ac07d54009960361d8cca5d340d97bdeea5702a1 Mon Sep 17 00:00:00 2001 From: neo <397763@gmail.com> Date: Tue, 9 Jun 2026 21:12:22 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81:=20=D1=82=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D1=8B=20=D0=BF=D1=80=D0=BE=D1=88=D0=BB=D0=B8,=20=D1=81?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D0=B5=D1=80=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 152-fz-scanner.service | 17 +++++++++++++++++ data/input/test_sites.csv | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 152-fz-scanner.service create mode 100644 data/input/test_sites.csv diff --git a/152-fz-scanner.service b/152-fz-scanner.service new file mode 100644 index 0000000..296d86a --- /dev/null +++ b/152-fz-scanner.service @@ -0,0 +1,17 @@ +[Unit] +Description=152-ФЗ Scanner API Server +After=network.target + +[Service] +Type=simple +User=neo +WorkingDirectory=/home/neo/workspace/152-fz-scanner +Environment="PATH=/home/neo/workspace/152-fz-scanner/.venv/bin" +ExecStart=/home/neo/workspace/152-fz-scanner/.venv/bin/python -m main server --host 127.0.0.1 --port 8765 +Restart=always +RestartSec=5 +StandardOutput=append:/home/neo/workspace/152-fz-scanner/logs/app.log +StandardError=append:/home/neo/workspace/152-fz-scanner/logs/app.log + +[Install] +WantedBy=default.target diff --git a/data/input/test_sites.csv b/data/input/test_sites.csv new file mode 100644 index 0000000..178a271 --- /dev/null +++ b/data/input/test_sites.csv @@ -0,0 +1,3 @@ +https://example.com +https://google.com +https://wikipedia.org