personality
Clone
https://git.tahinli.com/Tahinli/personality.git
0 watching0 forksRustGPL-3.0460.1 KiB4de8815Tahinli7 days ago22 commits
| 1 | [Unit] |
| 2 | Description=personality: personal website |
| 3 | After=network-online.target |
| 4 | Wants=network-online.target |
| 5 | StartLimitIntervalSec=60 |
| 6 | StartLimitBurst=5 |
| 7 | |
| 8 | [Service] |
| 9 | Type=simple |
| 10 | DynamicUser=yes |
| 11 | Environment=HOST=127.0.0.1 |
| 12 | Environment=PORT=2020 |
| 13 | ExecStart=/usr/local/bin/personality |
| 14 | Restart=on-failure |
| 15 | RestartSec=2 |
| 16 | LimitNOFILE=65536 |
| 17 | MemoryMax=256M |
| 18 | CapabilityBoundingSet= |
| 19 | AmbientCapabilities= |
| 20 | UMask=0077 |
| 21 | |
| 22 | # Hardening. The site is stateless: nothing is writable. |
| 23 | NoNewPrivileges=yes |
| 24 | ProtectSystem=strict |
| 25 | ProtectHome=yes |
| 26 | PrivateTmp=yes |
| 27 | PrivateDevices=yes |
| 28 | PrivateUsers=yes |
| 29 | ProtectKernelTunables=yes |
| 30 | ProtectKernelModules=yes |
| 31 | ProtectKernelLogs=yes |
| 32 | ProtectControlGroups=yes |
| 33 | ProtectClock=yes |
| 34 | ProtectHostname=yes |
| 35 | RestrictSUIDSGID=yes |
| 36 | RestrictRealtime=yes |
| 37 | RestrictNamespaces=yes |
| 38 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
| 39 | LockPersonality=yes |
| 40 | MemoryDenyWriteExecute=yes |
| 41 | SystemCallArchitectures=native |
| 42 | SystemCallFilter=@system-service |
| 43 | SystemCallFilter=~@privileged |
| 44 | ProtectProc=invisible |
| 45 | ProcSubset=pid |
| 46 | RemoveIPC=yes |
| 47 | PrivateMounts=yes |
| 48 | KeyringMode=private |
| 49 | |
| 50 | [Install] |
| 51 | WantedBy=multi-user.target |