Skip to content

Commit

Permalink
Fix phpbb3-archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Apr 10, 2024
1 parent 6f47e1c commit e8851b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions apps/faf-phpbb3-archive/templates/config.yaml
Expand Up @@ -10,21 +10,21 @@ data:
listen 80;
listen [::]:80;
server_name localhost;
root /usr/share/nginx/html/;
root /data;
if ($request_uri ~ ^/(.*)\.html) {
return 302 /$1;
}
location ~ \.php? {
default_type "text/html";
try_files $request_uri $request_uri/ =404;
}
# K8s healtcheck
# K8s healthcheck
# Access the path. If 200 is returned, Nginx can receive requests.
location /health {
access_log off;
return 200;
}
if ($request_uri ~ ^/(.*)\.html) {
return 302 /$1;
}
location ~ \.php? {
default_type "text/html";
try_files $request_uri $request_uri/ =404;
}
}
2 changes: 1 addition & 1 deletion apps/faf-phpbb3-archive/templates/deployment.yaml
Expand Up @@ -25,7 +25,7 @@ spec:
- containerPort: 80
volumeMounts:
- name: phpbb3-archive-pvc
mountPath: /usr/share/nginx/html/
mountPath: /data
#readOnly: true
- name: config
mountPath: /etc/nginx/conf.d/default.conf
Expand Down

0 comments on commit e8851b7

Please sign in to comment.