Skip to content

Commit

Permalink
update Certificate.md to reflect Caddy usage for HTTPS certificates; …
Browse files Browse the repository at this point in the history
…enhance staging-env.md with additional drawbacks of localhost
  • Loading branch information
gfxcc committed Dec 16, 2024
1 parent 780f003 commit ca3abfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dev-logs/staging-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ The staging environment allows verification of changes in a production-like sett

`localhost` is used to quickly build this environment. Compared to a public endpoint like `staging.my-domain.com`, `localhost` can be tested locally. Otherwise, development would need to be done on a remote machine serving as `staging.my-domain.com`, or frequent `git` operations would be required.

The drawback of using `localhost` is the need to manually install the local CA certificate.
The drawback of using `localhost` is
* the need to manually install the local CA certificate.
* issue like `Access-Control-Allow-Origin` can only be revealed when using public endpoints.

Once the staging env is stable, a public endpoint like `staging.my-domain.com` should be preferred.

Expand Down
3 changes: 2 additions & 1 deletion playbook/Certificate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Certificate
~~san11pk.org use [Let's Encrypt](https://letsencrypt.org/) to generate certificates.~~

san11pk.org use [Let's Encrypt](https://letsencrypt.org/) to generate certificates.
san11pk.org use Caddy to manage https certificates.

[Detailed instruction](https://certbot.eff.org/instructions?ws=other&os=ubuntufocal)

Expand Down

0 comments on commit ca3abfd

Please sign in to comment.