| 1 | [Unit] |
| 2 | Description=Gargantua |
| 3 | Documentation=https://github.com/stevedylandev/gargantua |
| 4 | After=network-online.target |
| 5 | Wants=network-online.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=simple |
| 9 | ExecStart=/usr/local/bin/gargantua |
| 10 | |
| 11 | # Listen on all interfaces; change if running behind a reverse proxy. |
| 12 | # Override any GARGANTUA_* variable from the Configuration section here. |
| 13 | Environment=GARGANTUA_HOST=0.0.0.0 |
| 14 | Environment=GARGANTUA_CORPUS=/usr/local/share/gargantua/moby.txt |
| 15 | |
| 16 | # A tarpit holds many simultaneous connections; the default fd limit |
| 17 | # (often 1024) is the real ceiling on trapped crawlers, so raise it. |
| 18 | LimitNOFILE=1000000 |
| 19 | |
| 20 | DynamicUser=yes |
| 21 | ProtectSystem=strict |
| 22 | ProtectHome=yes |
| 23 | NoNewPrivileges=yes |
| 24 | PrivateTmp=yes |
| 25 | |
| 26 | Restart=on-failure |
| 27 | RestartSec=2s |
| 28 | |
| 29 | [Install] |
| 30 | WantedBy=multi-user.target |