You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,62 @@ nginx container deployed on AWS App Runner and served through CloudFront.
4
4
5
5
Detailed docs for RubyKaigi orgz: https://rubykaigi.esa.io/posts/1241
6
6
7
+
## Quick Reference
8
+
9
+
### Add regional.rubykaigi.org subdirectory
10
+
11
+
1. Prepare GitHub Pages. No need to configure custom domain.
12
+
2. Write the following configuration to [./config/nginx.conf.erb](./config/nginx.conf.erb). Replace path, ORG_NAME and REPO_NAME with the actual value accordingly.
13
+
14
+
Add a new location block right before `regional.rubykaigi.org` location. Leave other parts as is.
__Cache:__ With the above configuration, our CDN respects GitHub Pages cache headers. As of Nov 2025, it is currently set to 10 minutes for everything. Contact RubyKaigi admins if you need immediate cache invalidation. We recommend to enable asset file hashing to avoid cache issues.
35
+
36
+
### Switch _the year_ of rubykaigi.org
37
+
38
+
Change the following values to the desired year. This will update `/` to redirect to the new year's website (`/YYYY/`), and serve `/#{year}` and `/#{year+1}` from the [rubykaigi.org repo](https://github.com/ruby-no-kai/rubykaigi.org). Make sure `#{year-1}` is switched to the archive beforehand.
39
+
40
+
-`current_year` value in [./config/nginx.conf.erb](./config/nginx.conf.erb)
41
+
-`latest_year` value in [./spec/rubykaigi_org_spec.rb](./spec/rubykaigi_org_spec.rb)
42
+
43
+
You'll need to invalidate CloudFront cache of root page `/` after deploy.
44
+
45
+
### Archive old rubykaigi.org year
46
+
47
+
Update `# RubyKaigi Archives` location path regex accordingly in [./config/nginx.conf.erb](./config/nginx.conf.erb).
48
+
49
+
```nginx
50
+
# RubyKaigi Archives
51
+
location ~ ^/202[2-5] {
52
+
include force_https.conf;
53
+
# ...
54
+
```
55
+
56
+
You'll need to invalidate CloudFront cache of the archived year `/YYYY` after deploy.
57
+
58
+
59
+
----
60
+
61
+
If you're going to do something more than the above, continue reading. Don't forget to write tests for new functionailities.
62
+
7
63
## Deploy
8
64
9
65
Deployments are automatically performed on GitHub Actions on `master` branch after CI.
0 commit comments