[Unit]
Description=Bridge-and-Join-s — эмулятор ЛК ESIA Finance (QA)
Documentation=https://git.zetit.ru/zuevav/Bridge-and-Join-s
After=network-online.target bj-server.service
Wants=network-online.target

[Service]
Type=simple
User=bj
Group=bj
WorkingDirectory=/opt/bj
ExecStart=/opt/bj/lk-emulator
Restart=on-failure
RestartSec=5

Environment=BJ_HTTP_ADDR=:8083
Environment=BJ_GATEWAY_URL=http://127.0.0.1:8080
Environment=BJ_EMULATOR_PUBLIC_URL=http://127.0.0.1:8083

NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
ProtectKernelTunables=true

LimitNOFILE=65536
TasksMax=128

[Install]
WantedBy=multi-user.target
