x-ui.service hardneing

This commit is contained in:
Darkcyankitty 2025-08-30 16:28:33 +00:00 committed by GitHub
parent 2750f46c01
commit ce3411f625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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