Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://api.camera-trap.tw #26

Closed
2 of 3 tasks
ghost opened this issue Nov 20, 2018 · 5 comments
Closed
2 of 3 tasks

https://api.camera-trap.tw #26

ghost opened this issue Nov 20, 2018 · 5 comments
Assignees
Labels
infra Infrastructure related

Comments

@ghost
Copy link

ghost commented Nov 20, 2018

  • 建立 DNS entry
  • 將 DNS 指向 api-dev (CameraTrapApi-env)
  • nginx 設定加上 port 443 for api.camera-trap.tw
@ghost ghost added this to To do in API v0 development via automation Nov 20, 2018
@ghost ghost assigned rwu823 Nov 21, 2018
@trashmai
Copy link

trashmai commented Nov 21, 2018

Nginx 不需要設定 443,https 由 AWS load balancer 與 Cloudfront 處理。ALB 到 Nginx 與 Nginx 到 node.js 這段的 proxy 建議維持 ElasticBeanstalk 的代管狀態。如果要把 80 port 的 access 關閉,從 ElasticBeanstalk 的 Load Balance Configuration 那邊關掉即可。換句話說其實只要到 Route53 上面設定好新的 DNS alias 就能搞定了。

@rwu823
Copy link
Contributor

rwu823 commented Nov 21, 2018

@cjk-halodule 請問現在 DNS 在哪管理?我是不是需要有權限

@ghost
Copy link
Author

ghost commented Nov 21, 2018

AWS 的 DNS 是 Route53 - 我已經設定好囉
現在 api.camera-trap.tw 可以用 只是沒加密

@ghost
Copy link
Author

ghost commented Nov 21, 2018

目前的設定:
Cloudfront behavior: Redirect HTTP to HTTPS
EB load balance conf: disable port 80
EB load balance HTTPS instance port/protocol 80/HTTP (LB到EC2間不加密)

@ghost
Copy link
Author

ghost commented Nov 21, 2018

由於這個 dev 環境目前不在 VPC 內,若未來也沒有打算放進去,我想應該要實作
Terminating HTTPS on EC2 Instances Running Node.js

@ghost ghost added the infra Infrastructure related label Nov 21, 2018
@ghost ghost mentioned this issue Nov 21, 2018
6 tasks
@ghost ghost closed this as completed Nov 22, 2018
@ghost ghost moved this from To do to Done in API v0 development Nov 23, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Infrastructure related
Projects
No open projects
Development

No branches or pull requests

2 participants