sys.config 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [
  2. {n4u, [{port, 4000},
  3. %{websocket_port, 443}, % uncomment at server behind nginx
  4. {websocket_port, 4000}, % same as port for localhost test
  5. {app, n4u_sample},
  6. {appurl, <<"https://mybesttestapp.win/">>},
  7. {upload, "./apps/n2o_sample/priv/static/"},
  8. {mode, dev},
  9. {pgs_host, "localhost"},
  10. {pgs_port, 5432},
  11. {pgs_user, "user33"},
  12. {pgs_pass, "strong_password_here"},
  13. {pgs_db, "test"},
  14. {route, routes},
  15. {mq, n2o_mq},
  16. {formatter, bert},
  17. {log_modules, config},
  18. {log_level, config},
  19. {log_backend, n2o_log},
  20. {session, n2o_session},
  21. {origin, <<"*">>},
  22. {bridge, n2o_cowboy},
  23. {pickler, n2o_pickle},
  24. {erroring, n2o_error},
  25. {event, pickle}]},
  26. {epgsql_pool,
  27. [{connection_timeout, 10000},
  28. {query_timeout, 3000},
  29. {transaction_timeout, 10000} ]},
  30. {fs,
  31. [{backwards_compatible, false}]},
  32. {active,
  33. [{compile_on_templates, true},
  34. {listen_paths, ["apps", "deps"]}]},
  35. %{mad,
  36. % [{compile_dtl_escape, true}, %% auto_escape dtl templates data -- default enabled in dtl, default disabled in mad
  37. % {debug, true}, %% add debug_info when compile erlang modules with mad, default disabled in mad
  38. % {warnings_as_errors, true}]}, %% add warnings_as_errors when compile erlang modules with mad, default disabled in mad
  39. {avz, [{after_login_page, "/index"},
  40. {login_page, "/interlogin"},
  41. {fb_id, "176025532423202"},
  42. {tw_consumer_key, "YwfU5qj5AYY0uwPumcw1Q"},
  43. {tw_consumer_secret, "O7VjRYLWxwMgtSXZbiiY6kc1Og2il9gbo1KAIqZk"},
  44. {g_client_id, "158344909038-j6c0rbvpi09kdaqq03j2eddlf047ht3d.apps.googleusercontent.com"},
  45. {g_cookiepolicy, "http://localhost:8000"},
  46. {g_btn_width, 240},
  47. {g_btn_height, 50},
  48. {g_btn_theme, "light"},
  49. {g_btn_longtitle, true},
  50. {github_client_id, "591bfe2556ee60ca8c32"},
  51. {github_client_secret, "01411884e3c51624d3ea729ed6b047db52973e8e"},
  52. {ms_client_id, "54385d15-f1e0-4fcf-9bf4-042d740e0df4"},
  53. {ms_client_secret, "jU0tStEzRdDPFwL9NdVGYxo"},
  54. {ms_redirect_uri, "http://localhost:8000/interlogin"}
  55. ]},
  56. {kvs, [{dba,store_mnesia},
  57. {schema, [kvs_user, kvs_acl, kvs_feed, kvs_subscription ]} ]}
  58. ].