Skip to content

Commit

Permalink
Naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Aug 1, 2024
1 parent d6826c7 commit 577fb1b
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions sites-enabled/admin_panel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location / {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
4 changes: 2 additions & 2 deletions sites-enabled/air_conditioning.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ server {
proxy_cache_bypass $http_upgrade;
proxy_buffering off;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location / {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
4 changes: 2 additions & 2 deletions sites-enabled/assets.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server {
proxy_set_header Host $http_host;

rewrite /profile-backgrounds/(.*) /public/api/v1/profile-backgrounds/$1 break;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

# If they hit /{filename} directly, default to avatars
Expand All @@ -19,6 +19,6 @@ server {
add_header Cache-Control no-cache;

rewrite /(.*) /public/api/v1/avatars/$1 break;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
4 changes: 2 additions & 2 deletions sites-enabled/bancho.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /api {
Expand All @@ -27,7 +27,7 @@ server {
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, PATCH, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' '*';

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}

Expand Down
2 changes: 1 addition & 1 deletion sites-enabled/beatmaps.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ server {
proxy_set_header Host $http_host;

rewrite /(.*) /public/$1 break;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
10 changes: 5 additions & 5 deletions sites-enabled/frontend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

# /web/replays for replay downloads (hanayo)
Expand All @@ -38,7 +38,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

# Redirect osu! avatar edit to hanayo
Expand All @@ -60,7 +60,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /api/v1/profile-history {
Expand All @@ -74,7 +74,7 @@ server {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

# https://osu.ppy.sh/beatmapsets/1117775#osu/2334952 -> https://osu.ppy.sh/b/2334952
Expand All @@ -94,6 +94,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
8 changes: 4 additions & 4 deletions sites-enabled/next.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /api/v1/profile-history {
Expand All @@ -30,7 +30,7 @@ server {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /api/v1/authenticate {
Expand All @@ -46,14 +46,14 @@ server {
proxy_set_header Host $http_host;

rewrite /(.*) /public/$1 break;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location / {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
2 changes: 1 addition & 1 deletion sites-enabled/payments.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
2 changes: 1 addition & 1 deletion sites-enabled/performance.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
2 changes: 1 addition & 1 deletion sites-enabled/rework_frontend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
2 changes: 1 addition & 1 deletion sites-enabled/upstreams.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
upstream production_k8s {
upstream k8s_production {
server 138.197.146.243:30000;
server 165.227.32.227:30000;
server 68.183.194.110:30000;
Expand Down
2 changes: 1 addition & 1 deletion sites-enabled/users.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ server {
proxy_set_header Host $http_host;

rewrite /(.*) /public/$1 break;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}
}
10 changes: 5 additions & 5 deletions sites-enabled/web.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ server {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /api/v1/pp {
client_max_body_size 100M;
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /api/ {
Expand All @@ -30,23 +30,23 @@ server {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location /d/ {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location ~ ^/ss/(.*) {
proxy_set_header X-Real-IP $http_CF_Connecting_IP;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

proxy_pass http://production_k8s;
proxy_pass http://k8s_production;
}

location ~^/notifications {
Expand Down

0 comments on commit 577fb1b

Please sign in to comment.