Skip to content

Commit

Permalink
chore: use newer runtimes and let nginx serve static files (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakAjmera26 authored Oct 8, 2024
1 parent 85c81c7 commit 8b4abf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions appengine/flexible/staticcontent/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ env: flex

runtime_config:
document_root: web
operating_system: ubuntu22
runtime_version: 8.3

build_env_variables:
NGINX_SERVES_STATIC_FILES: true
4 changes: 2 additions & 2 deletions compute/firewall/src/print_firewall_rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ function print_firewall_rule(string $projectId, string $firewallRuleName)
printf('Self Link: %s' . PHP_EOL, $response->getSelfLink());
printf('Logging Enabled: %s' . PHP_EOL, var_export($response->getLogConfig()->getEnable(), true));
print('--Allowed--' . PHP_EOL);
foreach ($response->getAllowed() as $item) {
foreach ($response->getAllowed()as $item) {
printf('Protocol: %s' . PHP_EOL, $item->getIPProtocol());
foreach ($item->getPorts()as $ports) {
foreach ($item->getPorts() as $ports) {
printf(' - Ports: %s' . PHP_EOL, $ports);
}
}
Expand Down

0 comments on commit 8b4abf7

Please sign in to comment.