Skip to content

Commit a540dd5

Browse files
committed
Merge branch 'main' into develop
2 parents 9f145da + d0e3add commit a540dd5

119 files changed

Lines changed: 1844 additions & 2089 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.docker/nginx.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ http {
1717
include /etc/nginx/mime.types;
1818
default_type application/octet-stream;
1919

20-
set_real_ip_from 172.16.0.0/16;
21-
real_ip_recursive on;
22-
real_ip_header X-Forwarded-For;
20+
# Note: set_real_ip_from is set in the server block
2321

2422
log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
2523
'$status $body_bytes_sent "$http_referer" '

.docker/templates/default.conf.template

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ server {
66

77
client_max_body_size ${NGINX_MAX_BODY_SIZE};
88

9-
# This also needs to be set in the single server tag and not only in http.
109
set_real_ip_from 172.16.0.0/16;
10+
set_real_ip_from 192.168.39.0/24;
1111
real_ip_recursive on;
1212
real_ip_header X-Forwarded-For;
1313

14+
location = /cron-metrics {
15+
# Proxy to supercronic metrics
16+
proxy_pass http://${NGINX_CRON_METRICS}/metrics;
17+
proxy_set_header Host $host;
18+
proxy_set_header X-Real-IP $remote_addr;
19+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
20+
proxy_set_header X-Forwarded-Proto $scheme;
21+
}
22+
1423
location = /favicon.ico {
1524
log_not_found off;
1625
access_log off;

.github/workflows/composer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
name: Composer
2727

2828
env:
29-
COMPOSE_USER: root
29+
COMPOSE_USER: runner
3030

3131
on:
3232
pull_request:

.github/workflows/php.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
name: PHP
3535

3636
env:
37-
COMPOSE_USER: root
37+
COMPOSE_USER: runner
3838

3939
on:
4040
pull_request:

.github/workflows/pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup PHP, with composer and extensions
4444
uses: shivammathur/setup-php@v2
4545
with:
46-
php-version: 8.3
46+
php-version: 8.4
4747
extensions: ctype, dom, iconv, json, zip, gd, soap
4848
coverage: none
4949
tools: composer:v2
@@ -112,7 +112,7 @@ jobs:
112112
- name: Setup PHP, with composer and extensions
113113
uses: shivammathur/setup-php@v2
114114
with:
115-
php-version: 8.3
115+
php-version: 8.4
116116
extensions: ctype, dom, iconv, json, zip, gd, soap
117117
coverage: none
118118
tools: composer:v2

.github/workflows/site.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
name: Drupal
2020

2121
env:
22-
COMPOSE_USER: root
22+
COMPOSE_USER: runner
2323

2424
on:
2525
pull_request:

.github/workflows/twig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
name: Twig
2525

2626
env:
27-
COMPOSE_USER: root
27+
COMPOSE_USER: runner
2828

2929
on:
3030
pull_request:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
/web/autoload.php
9494
/web/example.gitignore
9595
/web/index.php
96-
/web/robots.txt
9796
/web/update.php
9897
/web/web.config
9998
/web/modules/README.txt
@@ -169,7 +168,6 @@
169168
/web/INSTALL.txt
170169
/web/LICENSE.txt
171170
/web/README.txt
172-
/web/robots.txt
173171
/web/update.php
174172
/web/web.config
175173

.phpcs.xml.dist

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0"?>
2+
<!-- This file is copied from config/drupal/php/.phpcs.xml.dist in https://github.com/itk-dev/devops_itkdev-docker. -->
3+
<!-- Feel free to edit the file, but consider making a pull request if you find a general issue with the file. -->
4+
5+
<ruleset name="PHP_CodeSniffer">
6+
<description>The coding standard.</description>
7+
8+
<file>web/modules/custom/</file>
9+
<file>web/themes/custom/</file>
10+
11+
<!-- Exclude generated files -->
12+
<exclude-pattern>node_modules</exclude-pattern>
13+
<exclude-pattern>vendor</exclude-pattern>
14+
<exclude-pattern>web/*/custom/*/build/</exclude-pattern>
15+
<exclude-pattern>*.css</exclude-pattern>
16+
<exclude-pattern>*.js</exclude-pattern>
17+
18+
<arg value="p"/>
19+
20+
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,yml"/>
21+
22+
<config name="drupal_core_version" value="11"/>
23+
24+
<rule ref="Drupal">
25+
<!-- <exclude name="Drupal.Files.TxtFileLineLength.TooLong"/> -->
26+
<!-- We want to be able to use "package" and "version" in our custom modules -->
27+
<exclude name="Drupal.InfoFiles.AutoAddedKeys.Project"/>
28+
<exclude name="Drupal.InfoFiles.AutoAddedKeys.Version"/>
29+
<exclude name="Drupal.NamingConventions.ValidEnumCase.NoUpperAcronyms" />
30+
<exclude name="Drupal.NamingConventions.ValidEnumCase.NoUnderscores" />
31+
</rule>
32+
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"/>
33+
</ruleset>

.woodpecker/os2forms_prod.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)