34 lines
733 B
SYSTEMD
34 lines
733 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=ChainID 138 Explorer Frontend Service
|
||
|
|
Documentation=https://github.com/explorer/frontend
|
||
|
|
After=network.target explorer-api.service
|
||
|
|
Requires=explorer-api.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=explorer
|
||
|
|
Group=explorer
|
||
|
|
WorkingDirectory=/home/explorer/explorer-monorepo/frontend
|
||
|
|
EnvironmentFile=/home/explorer/explorer-monorepo/.env
|
||
|
|
ExecStart=/usr/bin/npm start
|
||
|
|
Restart=always
|
||
|
|
RestartSec=10
|
||
|
|
StandardOutput=journal
|
||
|
|
StandardError=journal
|
||
|
|
SyslogIdentifier=explorer-frontend
|
||
|
|
|
||
|
|
# Security settings
|
||
|
|
NoNewPrivileges=true
|
||
|
|
PrivateTmp=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ProtectHome=read-only
|
||
|
|
ReadWritePaths=/home/explorer/explorer-monorepo/frontend
|
||
|
|
|
||
|
|
# Resource limits
|
||
|
|
LimitNOFILE=65536
|
||
|
|
LimitNPROC=4096
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|
||
|
|
|