Skip to content

Commit caf7b7c

Browse files
committed
Update RA docker override for the current PHP 8.2 based app
1 parent 481d4d1 commit caf7b7c

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

stepup/ra/appconf.conf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<Virtualhost *:80>
2+
ServerName ra
3+
ServerAdmin admin@dev.openconext.local
4+
5+
DocumentRoot /var/www/html/public
6+
7+
SetEnv HTTPS on
8+
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
9+
10+
<Directory "/var/www/html/public">
11+
Require all granted
12+
13+
Options -MultiViews
14+
RewriteEngine On
15+
RewriteCond %{REQUEST_FILENAME} !-f
16+
RewriteRule ^(.*)$ index.php [QSA,L]
17+
</Directory>
18+
<Location />
19+
Require all granted
20+
</Location>
21+
22+
Header always set X-Content-Type-Options "nosniff"
23+
24+
# Set the php application handler so mod_php interpets the files
25+
<FilesMatch \.php$>
26+
SetHandler application/x-httpd-php
27+
</FilesMatch>
28+
29+
ExpiresActive on
30+
ExpiresByType font/* "access plus 1 year"
31+
ExpiresByType image/* "access plus 6 months"
32+
ExpiresByType text/css "access plus 1 year"
33+
ExpiresByType text/js "access plus 1 year"
34+
</VirtualHost>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
services:
33
ra:
4-
image: ghcr.io/openconext/openconext-basecontainers/${RA_PHP_IMAGE:-php72-apache2-node14-composer2:latest}
4+
image: ghcr.io/openconext/openconext-basecontainers/${RA_PHP_IMAGE:-php82-apache2-node14-composer2:latest}
55
volumes:
66
- ${RA_CODE_PATH}:/var/www/html
7+
- ./ra/appconf.conf:/etc/apache2/sites-enabled/000-default.conf
78
environment:
89
- APP_ENV=${APP_ENV:-dev}
910
- APP_DEBUG=true

0 commit comments

Comments
 (0)