x-ui.service hardneing (#3397)

This commit is contained in:
Darkcyankitty
2025-08-31 13:26:46 +00:00
committed by GitHub
parent d0796b26c9
commit 664269d513

View File

@@ -10,6 +10,13 @@ WorkingDirectory=/usr/local/x-ui/
ExecStart=/usr/local/x-ui/x-ui
Restart=on-failure
RestartSec=5s
ProtectHome=tmpfs
ProtectKernelModules=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectHostname=true
ProtectClock=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target