Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.52 KB | None | 0 0
  1. #######################################################################
  2. # Wiki.js - CONFIGURATION                                             #
  3. #######################################################################
  4. # Full explanation + examples in the documentation:
  5. # https://docs.requarks.io/wiki/install
  6. # You can use an ENV variable by using $(ENV_VAR_NAME) as the value
  7.  
  8. # ---------------------------------------------------------------------
  9. # Title of this site
  10. # ---------------------------------------------------------------------
  11.  
  12. title: Mantra Wiki
  13.  
  14. # ---------------------------------------------------------------------
  15. # Full public path to the site, without the trailing slash
  16. # ---------------------------------------------------------------------
  17. # INCLUDE CLIENT PORT IF NOT 80/443!
  18.  
  19. host: 10.157.163.225
  20.  
  21. # ---------------------------------------------------------------------
  22. # Port the main server should listen to (80 by default)
  23. # ---------------------------------------------------------------------
  24. # To use process.env.PORT, comment the line below:
  25.  
  26. port: 80
  27.  
  28. # ---------------------------------------------------------------------
  29. # Data Directories
  30. # ---------------------------------------------------------------------
  31.  
  32. paths:
  33.   repo: ./repo
  34.   data: ./data
  35.  
  36. # ---------------------------------------------------------------------
  37. # Upload Limits
  38. # ---------------------------------------------------------------------
  39. # In megabytes (MB)
  40.  
  41. uploads:
  42.   maxImageFileSize: 3
  43.   maxOtherFileSize: 100
  44.  
  45. # ---------------------------------------------------------------------
  46. # Site Language
  47. # ---------------------------------------------------------------------
  48. # Possible values: en, de, es, fa, fr, ja, ko, nl, pt, ru, sr, sv, tr or zh
  49.  
  50. lang: en
  51.  
  52. # Enable for right to left languages (e.g. arabic):
  53. langRtl: false
  54.  
  55. # ---------------------------------------------------------------------
  56. # Site Authentication
  57. # ---------------------------------------------------------------------
  58.  
  59. public: false
  60.  
  61. auth:
  62.   defaultReadAccess: false
  63.   local:
  64.     enabled: true
  65.   google:
  66.     enabled: false
  67.     clientId: GOOGLE_CLIENT_ID
  68.     clientSecret: GOOGLE_CLIENT_SECRET
  69.   microsoft:
  70.     enabled: false
  71.     clientId: MS_APP_ID
  72.     clientSecret: MS_APP_SECRET
  73.   facebook:
  74.     enabled: false
  75.     clientId: FACEBOOK_APP_ID
  76.     clientSecret: FACEBOOK_APP_SECRET
  77.   github:
  78.     enabled: false
  79.     clientId: GITHUB_CLIENT_ID
  80.     clientSecret: GITHUB_CLIENT_SECRET
  81.   slack:
  82.     enabled: false
  83.     clientId: 'SLACK_CLIENT_ID'
  84.     clientSecret: 'SLACK_CLIENT_SECRET'
  85.   ldap:
  86.     enabled: false
  87.     url: ldap://serverhost:389
  88.     bindDn: cn='root'
  89.     bindCredentials: BIND_PASSWORD
  90.     searchBase: o=users,o=example.com
  91.     searchFilter: (uid={{username}})
  92.     tlsEnabled: false
  93.     tlsCertPath: C:\example\root_ca_cert.crt
  94.   azure:
  95.     enabled: false
  96.     clientId: APP_ID
  97.     clientSecret: APP_SECRET_KEY
  98.     resource: '00000002-0000-0000-c000-000000000000'
  99.     tenant: 'YOUR_TENANT.onmicrosoft.com'
  100.   oauth2:
  101.     enabled: false
  102.     clientId: OAUTH2_CLIENT_ID
  103.     clientSecret: OAUTH2_CLIENT_SECRET
  104.     authorizationURL: OAUTH2_AUTH_URL
  105.     tokenURL: OAUTH2_TOKEN_URL
  106.   oidc:
  107.     enabled: false
  108.     clientId: OPENID_CONNECT_CLIENT_ID
  109.     clientSecret: OPENID_CONNECT_CLIENT_SECRET
  110.     issuer: OPENID_CONNECT_ISSUER
  111.     userInfoUrl: OPENID_CONNECT_USER_INFO_URL
  112.     authorizationURL: OPENID_CONNECT_AUTHORIZATION_URL
  113.     tokenURL: OPENID_CONNECT_TOKEN_URL
  114.     emailClaim: OPENID_CONNECT_EMAIL_CLAIM_PATH
  115.     usernameClaim: OPENID_CONNECT_USERNAME_CLAIM_PATH
  116. # ---------------------------------------------------------------------
  117. # Secret key to use when encrypting sessions
  118. # ---------------------------------------------------------------------
  119. # Use a long and unique random string (256-bit keys are perfect!)
  120.  
  121. sessionSecret: aaaaaaaaaaaaabbbbbbbbbbbbbb1234567899
  122.  
  123. # ---------------------------------------------------------------------
  124. # Database Connection String
  125. # ---------------------------------------------------------------------
  126.  
  127. db: mongodb://wikidb:27017/wiki
  128.  
  129. # ---------------------------------------------------------------------
  130. # Git Connection Info
  131. # ---------------------------------------------------------------------
  132.  
  133. git:
  134.   url: //redacted
  135.   branch: master
  136.   auth:
  137.     # Type: basic or ssh
  138.     type: ssh
  139.  
  140.     # Only for Basic authentication:
  141.     username:
  142.     password:
  143.  
  144.     # Only for SSH authentication:
  145.     privateKey: /etc/wiki/keys/git.pem
  146.  
  147.     sslVerify: true
  148.  
  149.   # Default email to use as commit author
  150.   serverEmail: //redacted
  151.  
  152.   # Whether to use user email as author in commits
  153.   showUserEmail: true
  154.  
  155. # ---------------------------------------------------------------------
  156. # Features
  157. # ---------------------------------------------------------------------
  158. # You can enable / disable specific features below
  159.  
  160. features:
  161.   linebreaks: true
  162.   mathjax: true
  163.  
  164. # ---------------------------------------------------------------------
  165. # External Logging
  166. # ---------------------------------------------------------------------
  167.  
  168. externalLogging:
  169.   bugsnag: false
  170.   loggly: false
  171.   papertrail: false
  172.   rollbar: false
  173.   sentry: false
  174.  
  175. # ---------------------------------------------------------------------
  176. # Color Theme
  177. # ---------------------------------------------------------------------
  178.  
  179. theme:
  180.   primary: indigo
  181.   alt: blue-grey
  182.   viewSource: all # all | write | false
  183.   footer: blue-grey
  184.   code:
  185.     dark: true
  186.     colorize: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement