File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11server {
22
33 # Set the port to listen on and the server name
4- listen 80;
5- listen [::]:80;
6- server_name php.ug php.ug.lo ;
4+ listen 80 default_server ;
5+ listen [::]:80 default_server ;
6+ server_name _ ;
77
8- return 301 https://$server_name$request_uri;
9- }
10-
11- server {
12- listen [::]:443 ssl;
13- listen 443 ssl;
14- server_name php.ug php.ug.lo;
15- # Set the document root of the project
168 root /var/www/php.ug/public;
179
1810 # Set the directory index files
1911 index index.html index.php;
2012
21- ssl_certificate /etc/nginx/ssl/php.ug.lo.crt;
22- ssl_certificate_key /etc/nginx/ssl/php.ug.lo.key;
23-
24- ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
25- ssl_ciphers HIGH:!aNULL:!MD5;
26-
2713 # Specify the default character set
2814 charset utf-8;
2915
@@ -58,7 +44,7 @@ server {
5844
5945 sendfile off;
6046
61- client_max_body_size 100m ;
47+ client_max_body_size 20m ;
6248
6349 # Specify what happens what .ht files are requested
6450 location ~ /\.ht {
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- FROM php:8.4-fpm
21LABEL authors="andreas@heigl.org"
2+ FROM php:8.4-fpm AS base
33
44COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
55COPY scripts /tmp
66RUN bash -c "/tmp/php-build.sh"
77RUN bash -c "/tmp/php-install-composer.sh"
88RUN bash -c "/tmp/php-install-phive.sh"
99WORKDIR "/var/www/php.ug"
10+
11+ FROM base AS prod
12+
13+ RUN rm /usr/bin/pie usr/local/bin/composer /usr/local/bin/phive
14+ COPY build /var/www/php.ug
15+
Original file line number Diff line number Diff line change 1+ tests
2+ .justfiles
3+ .docker
4+ .editorconfig
5+ .gitattributes
6+ .gitignore
7+ Justfile
Original file line number Diff line number Diff line change 1+ # Start the local instance
2+ [group("Build")]
3+ extract-php tag:
4+ docker compose exec php bash -c <<- DELIMITER
5+ rm -rf extract \
6+ mkdir extract \
7+ git archive --prefix=\"./\" --format=tar {{tag}} .| tar xv -C extract/ \
8+ find extract/ -type f -exec sed -i \"s/%release-tag%/:{{tag}}/\" {} \; \
9+ cd extract \
10+ composer install --no-dev --prefer-dist -a \
11+ cd .. \
12+ tar cvzf archive.tgz -C extract/ . \
13+ rm -rf extract \
14+ DELIMITER
Original file line number Diff line number Diff line change 22
33export COMPOSE_BAKE := " true"
44
5+ import ' .justfiles/build.Justfile'
56import ' .justfiles/docker.Justfile'
67import ' .justfiles/init.Justfile'
78
You can’t perform that action at this time.
0 commit comments