sys.config 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. {fs,
  27. [{backwards_compatible, false}]},
  28. {active,
  29. [{compile_on_templates, true},
  30. {listen_paths, ["apps", "deps"]}]},
  31. %{mad,
  32. % [{compile_dtl_escape, true}, %% auto_escape dtl templates data -- default enabled in dtl, default disabled in mad
  33. % {debug, true}, %% add debug_info when compile erlang modules with mad, default disabled in mad
  34. % {warnings_as_errors, true}]}, %% add warnings_as_errors when compile erlang modules with mad, default disabled in mad
  35. {avz, [{after_login_page, "/index"},
  36. {login_page, "/interlogin"},
  37. {fb_id, "176025532423202"},
  38. {tw_consumer_key, "YwfU5qj5AYY0uwPumcw1Q"},
  39. {tw_consumer_secret, "O7VjRYLWxwMgtSXZbiiY6kc1Og2il9gbo1KAIqZk"},
  40. {g_client_id, "158344909038-j6c0rbvpi09kdaqq03j2eddlf047ht3d.apps.googleusercontent.com"},
  41. {g_cookiepolicy, "http://localhost:8000"},
  42. {g_btn_width, 240},
  43. {g_btn_height, 50},
  44. {g_btn_theme, "light"},
  45. {g_btn_longtitle, true},
  46. {github_client_id, "591bfe2556ee60ca8c32"},
  47. {github_client_secret, "01411884e3c51624d3ea729ed6b047db52973e8e"},
  48. {ms_client_id, "54385d15-f1e0-4fcf-9bf4-042d740e0df4"},
  49. {ms_client_secret, "jU0tStEzRdDPFwL9NdVGYxo"},
  50. {ms_redirect_uri, "http://localhost:8000/interlogin"}
  51. ]},
  52. {kvs, [{dba,store_mnesia},
  53. {schema, [kvs_user, kvs_acl, kvs_feed, kvs_subscription ]} ]}
  54. ].