chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
21
deployment/common/systemd-api-service.example
Normal file
21
deployment/common/systemd-api-service.example
Normal file
@@ -0,0 +1,21 @@
|
||||
# Example systemd unit for a REST API (e.g. explorer API on port 8080)
|
||||
# Copy to /etc/systemd/system/explorer-api.service and adjust paths/env.
|
||||
|
||||
[Unit]
|
||||
Description=Explorer REST API
|
||||
After=network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=explorer
|
||||
WorkingDirectory=/opt/explorer
|
||||
Environment=PORT=8080
|
||||
Environment=DB_HOST=localhost
|
||||
Environment=DB_NAME=explorer
|
||||
Environment=CHAIN_ID=138
|
||||
ExecStart=/opt/explorer/bin/api-server
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user