Skip to content

Commit 692de4a

Browse files
committed
prod port
1 parent 99b59a9 commit 692de4a

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

config/prod.exs

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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 :backend, Backend.Endpoint,
15+
http: [port: 80],
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 :backend, Backend.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 :backend, Backend.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 :backend, Backend.Endpoint, server: true
57+
#
58+
# You will also need to set the application root to `.` in order
59+
# for the new static assets to be served after a hot upgrade:
60+
#
61+
# config :backend, Backend.Endpoint, root: "."
62+
63+
# Finally import the config/prod.secret.exs
64+
# which should be versioned separately.
65+
import_config "prod.secret.exs"

0 commit comments

Comments
 (0)