Skip to content

Commit cae99ca

Browse files
Merge branch 'main' of https://github.com/0xPolygon/polygon-docs into platform/spamming-attack
2 parents 550588b + 3bbd8aa commit cae99ca

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile.review

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COPY app /app
55

66
WORKDIR /app
77
EXPOSE 80
8-
CMD ["nginx", "-g", "daemon off;"]
8+
CMD ["nginx", "-g", "daemon off;"]

build_branches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def update_nginx_config(pr_numbers, parsed_env):
160160
for pr_number in pr_numbers:
161161
location_block = f"""location /{pr_number} {{
162162
alias /app/{pr_number};
163-
try_files $uri $uri/ /index.html;
163+
try_files $uri $uri/ =404;
164164
error_page 404 /404.html;
165165
}}
166166
"""

nginx.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ http {
1515
listen 80;
1616

1717
#REPLACE_APPS
18+
1819
location / {
19-
alias /app/#environment/;
20+
root /app/#environment;
2021
index index.html;
21-
try_files $uri $uri/ /index.html;
22+
try_files $uri $uri/ /404.html;
2223
error_page 404 /404.html;
2324
}
2425
}

0 commit comments

Comments
 (0)