File tree Expand file tree Collapse file tree 10 files changed +33
-131
lines changed Expand file tree Collapse file tree 10 files changed +33
-131
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
server {
2
2
3
3
# 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 _ ;
7
7
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
16
8
root /var/www/php.ug/public;
17
9
18
10
# Set the directory index files
19
11
index index.html index.php;
20
12
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
-
27
13
# Specify the default character set
28
14
charset utf-8;
29
15
@@ -58,7 +44,7 @@ server {
58
44
59
45
sendfile off;
60
46
61
- client_max_body_size 100m ;
47
+ client_max_body_size 20m ;
62
48
63
49
# Specify what happens what .ht files are requested
64
50
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
2
1
2
+ FROM php:8.4-fpm AS base
3
3
4
4
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
5
5
COPY scripts /tmp
6
6
RUN bash -c "/tmp/php-build.sh"
7
7
RUN bash -c "/tmp/php-install-composer.sh"
8
8
RUN bash -c "/tmp/php-install-phive.sh"
9
9
WORKDIR "/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 2
2
3
3
export COMPOSE_BAKE := " true"
4
4
5
+ import ' .justfiles/build.Justfile'
5
6
import ' .justfiles/docker.Justfile'
6
7
import ' .justfiles/init.Justfile'
7
8
You can’t perform that action at this time.
0 commit comments