Advertisement
travisdh1

Untitled

Aug 24th, 2017
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 KB | None | 0 0
  1. root@xo:/opt/xo-server# cat .xo-server.yaml
  2. # BE *VERY* CAREFUL WHEN EDITING!
  3. # YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
  4. # visit http://www.yamllint.com/ to validate this file as needed
  5.  
  6. #=====================================================================
  7.  
  8. # Example XO-Server configuration.
  9. #
  10. # This file is automatically looking for at the following places:
  11. # - `$HOME/.config/xo-server/config.yaml`
  12. # - `/etc/xo-server/config.yaml`
  13. #
  14. # The first entries have priority.
  15. #
  16. # Note: paths are relative to the configuration file.
  17.  
  18. #=====================================================================
  19.  
  20. # It may be necessary to run XO-Server as a privileged user (e.g.
  21. # `root`) for instance to allow the HTTP server to listen on a
  22. # [privileged ports](http://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html).
  23. #
  24. # To avoid security issues, XO-Server can drop its privileges by
  25. # changing the user and the group is running with.
  26. #
  27. # Note: XO-Server will change them just after reading the
  28. # configuration.
  29.  
  30. # User to run XO-Server as.
  31. #
  32. # Note: The user can be specified using either its name or its numeric
  33. # identifier.
  34. #
  35. # Default: undefined
  36. #user: 'nobody'
  37.  
  38. # Group to run XO-Server as.
  39. #
  40. # Note: The group can be specified using either its name or its
  41. # numeric identifier.
  42. #
  43. # Default: undefined
  44. #group: 'nogroup'
  45.  
  46. #=====================================================================
  47.  
  48. # Configuration of the embedded HTTP server.
  49. http:
  50.  
  51. # Hosts & ports on which to listen.
  52. #
  53. # By default, the server listens on [::]:80.
  54. listen:
  55. # Basic HTTP.
  56. -
  57. # Address on which the server is listening on.
  58. #
  59. # Sets it to 'localhost' for IP to listen only on the local host.
  60. #
  61. # Default: all IPv6 addresses if available, otherwise all IPv4
  62. # addresses.
  63. #hostname: 'localhost'
  64.  
  65. # Port on which the server is listening on.
  66. #
  67. # Default: undefined
  68. # port: 80
  69.  
  70. # Instead of `host` and `port` a path to a UNIX socket may be
  71. # specified (overrides `host` and `port`).
  72. #
  73. # Default: undefined
  74. #socket: './http.sock'
  75.  
  76. # Basic HTTPS.
  77. #
  78. # You can find the list of possible options there https://nodejs.org/docs/latest/api/tls.html#tls.createServer
  79. # -
  80. # # The only difference is the presence of the certificate and the
  81. # # key.
  82. # #
  83. hostname: 'xo.travisdh1.net'
  84. port: 443
  85.  
  86. # # File containing the certificate (PEM format).
  87. #
  88. # # If a chain of certificates authorities is needed, you may bundle
  89. # # them directly in the certificate.
  90. # #
  91. # # Note: the order of certificates does matter, your certificate
  92. # # should come first followed by the certificate of the above
  93. # # certificate authority up to the root.
  94. # #
  95. # # Default: undefined
  96. cert: '/etc/letsencrypt/live/xo.travisdh1.net/cert.pem'
  97.  
  98. # # File containing the private key (PEM format).
  99. # #
  100. # # If the key is encrypted, the passphrase will be asked at
  101. # # server startup.
  102. # #
  103. # # Default: undefined
  104. key: '/etc/letsencrypt/live/xo.travisdh1.net/privkey.pem'
  105. chain: '/etc/letsencrypt/live/xo.travisdh1.net/chain.pem'
  106.  
  107. # If set to true, all HTTP traffic will be redirected to the first
  108. # HTTPs configuration.
  109. redirectToHttps: true
  110.  
  111. # List of files/directories which will be served.
  112. mounts:
  113. '/': '/opt/xo-web/dist'
  114.  
  115. # List of proxied URLs (HTTP & WebSockets).
  116. proxies:
  117. # '/any/url': 'http://localhost:54722'
  118.  
  119. # HTTP proxy configuration used by xo-server to fetch resources on the
  120. # Internet.
  121. #
  122. # See: https://github.com/TooTallNate/node-proxy-agent#maps-proxy-protocols-to-httpagent-implementations
  123. #httpProxy: 'http://jsmith:qwerty@proxy.lan:3128'
  124.  
  125. #=====================================================================
  126.  
  127. # Connection to the Redis server.
  128. redis:
  129. # Unix sockets can be used
  130. #
  131. # Default: undefined
  132. #socket: /var/run/redis/redis.sock
  133.  
  134. # Syntax: redis://[db[:password]@]hostname[:port][/db-number]
  135. #
  136. # Default: redis://localhost:6379/0
  137. #uri: redis://redis.company.lan/42
  138.  
  139. # List of aliased commands.
  140. #
  141. # See http://redis.io/topics/security#disabling-of-specific-commands
  142. #renameCommands:
  143. # del: '3dda29ad-3015-44f9-b13b-fa570de92489'
  144. # srem: '3fd758c9-5610-4e9d-a058-dbf4cb6d8bf0'
  145.  
  146.  
  147. # Directory containing the database of XO.
  148. # Currently used for logs.
  149. #
  150. # Default: '/var/lib/xo-server/data'
  151. #datadir: '/var/lib/xo-server/data'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement