checkpoint: create/delete working now / existing tests passing / need moar tests
[tech-radar-editor.git] / config / prod.exs
1 use Mix.Config
2
3 # For production, we configure the host to read the PORT
4 # from the system environment. Therefore, you will need
5 # to set PORT=80 before running your server.
6 #
7 # You should also configure the url host to something
8 # meaningful, we use this information when generating URLs.
9 #
10 # Finally, we also include the path to a manifest
11 # containing the digested version of static files. This
12 # manifest is generated by the mix phoenix.digest task
13 # which you typically run after static files are built.
14 config :tech_radar_editor, TechRadarEditor.Endpoint,
15 http: [port: {:system, "PORT"}],
16 url: [host: "example.com", port: 80],
17 cache_static_manifest: "priv/static/manifest.json"
18
19 # Do not print debug messages in production
20 config :logger, level: :info
21
22 # ## SSL Support
23 #
24 # To get SSL working, you will need to add the `https` key
25 # to the previous section and set your `:url` port to 443:
26 #
27 # config :tech_radar_editor, TechRadarEditor.Endpoint,
28 # ...
29 # url: [host: "example.com", port: 443],
30 # https: [port: 443,
31 # keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
32 # certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
33 #
34 # Where those two env variables return an absolute path to
35 # the key and cert in disk or a relative path inside priv,
36 # for example "priv/ssl/server.key".
37 #
38 # We also recommend setting `force_ssl`, ensuring no data is
39 # ever sent via http, always redirecting to https:
40 #
41 # config :tech_radar_editor, TechRadarEditor.Endpoint,
42 # force_ssl: [hsts: true]
43 #
44 # Check `Plug.SSL` for all available options in `force_ssl`.
45
46 # ## Using releases
47 #
48 # If you are doing OTP releases, you need to instruct Phoenix
49 # to start the server for all endpoints:
50 #
51 # config :phoenix, :serve_endpoints, true
52 #
53 # Alternatively, you can configure exactly which server to
54 # start per endpoint:
55 #
56 # config :tech_radar_editor, TechRadarEditor.Endpoint, server: true
57 #
58
59 # Finally import the config/prod.secret.exs
60 # which should be versioned separately.
61 import_config "prod.secret.exs"