sysdweb.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # sysdweb sample config file
  2. #
  3. # This file is defined as standard ini file and must be at least one entry.
  4. #
  5. # Entries consist of:
  6. # - [label]. It maches with URL /api/v1/<label>.
  7. # - title. Custom description of service for page
  8. # - unit. systemd unit name (with or without .service)
  9. # All entries are mandatory
  10. #
  11. # Samples.
  12. # [ngx]
  13. # title = Nginx
  14. # unit = nginx.service
  15. #
  16. # [nm]
  17. # title = Network Manager
  18. # unit = NetworkManager
  19. [DEFAULT]
  20. # You can set scope here, it can be.
  21. # - system. for control systemd system units (sysdweb must be run as root),
  22. # this is default if scope not is defined
  23. # - user. for control systemd user units
  24. scope = system
  25. # Can configure listen address host and port. If not present, default values
  26. # will be used. Take note that you can pass this values via environment vars
  27. # or args and they prevail over this configuration.
  28. #host = 127.0.0.1
  29. #port = 10080
  30. # sysdweb uses PAM to users auth, if you are running it in system mode you
  31. # can define here what users and groups have access. If you leave this
  32. # unconfigured them all system users will have access. In user mode this not
  33. # apply because only the user that running it have access.
  34. #users = root, admin
  35. #groups = wheel, users
  36. # Some sample entries
  37. [ngx]
  38. title = Nginx
  39. unit = nginx.service
  40. [nm]
  41. title = Network Manager
  42. unit = NetworkManager
  43. # .service is optional
  44. [sysdweb]
  45. # Yes, can control sysdweb too!
  46. title = sysdweb
  47. unit = sysdweb.service