Skip to content

Commit

Permalink
add air conditioning to k8s rev proxy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku authored May 26, 2024
1 parent 2c6860e commit 4610139
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sites-enabled/air_conditioning.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
server {
listen 80;
server_name air_conditioning.akatsuki.pw air_conditioning.akatsuki.gg;

client_max_body_size 5000M;

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://air_conditioning_service;
}

location /loader-hub {
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_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_cache_bypass $http_upgrade;
proxy_buffering off;

proxy_pass http://air_conditioning_service;
}
}
4 changes: 4 additions & 0 deletions sites-enabled/upstreams.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ upstream beatmaps_service {
server beatmaps-service-api-production.default.svc.cluster.local;
}

upstream air_conditioning_service {
server air-conditioning-service-api-production.default.svc.cluster.local;
}

upstream vault {
server 127.0.0.1:8200;
}
Expand Down

0 comments on commit 4610139

Please sign in to comment.