[Unit]
Description=RPC Translator Service for ChainID 138
Documentation=https://github.com/your-org/rpc-translator-138
After=network.target besu-rpc.service
Wants=besu-rpc.service

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/rpc-translator-138
Environment=NODE_ENV=production
EnvironmentFile=-/opt/rpc-translator-138/.env
ExecStart=/usr/bin/node dist/src/main.js
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=rpc-translator-138

# Security settings
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/rpc-translator-138

# Resource limits
LimitNOFILE=65536
MemoryMax=2G

[Install]
WantedBy=multi-user.target
