Skip to content

Commit

Permalink
Switch 2024 to the archive
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Oct 28, 2024
1 parent 2e60c75 commit d137311
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions config/nginx.conf.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% primary_host = ENV.fetch('PRIMARY_HOST', 'rko-router.herokuapp.com') %>
<% platform = ENV.fetch("RKO_ROUTER_PLATFORM", "heroku") %>
<% current_year = '2024' %>
<% current_year = '2025' %>

<% if platform == 'heroku' %>
daemon off;
Expand Down Expand Up @@ -390,29 +390,29 @@ http {
proxy_pass https://2009-2011.rubykaigi.org;
}

location ~ ^/202[2-3] {
location ~ ^/202[2-4] {
include force_https.conf;
proxy_hide_header Cache-Control;
proxy_hide_header Expires;
add_header Cache-Control "public, max-age=604800, s-maxage=31536000";
proxy_pass https://2009-2011.rubykaigi.org;
}

location /2024 {
location /2025 {
include force_https.conf;
proxy_hide_header Cache-Control;
proxy_hide_header Expires;
add_header Cache-Control "$implied_cache_control";
proxy_pass https://gh-pages.rubykaigi.org;
}

location /2025 {
include force_https.conf;
proxy_hide_header Cache-Control;
proxy_hide_header Expires;
add_header Cache-Control "public, max-age=0, s-maxage=0";
proxy_pass https://gh-pages.rubykaigi.org;
}
# location /2026 {
# include force_https.conf;
# proxy_hide_header Cache-Control;
# proxy_hide_header Expires;
# add_header Cache-Control "public, max-age=0, s-maxage=0";
# proxy_pass https://gh-pages.rubykaigi.org;
# }


# current rubykaigi
Expand Down

0 comments on commit d137311

Please sign in to comment.