File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ environment:
19
19
- go
20
20
- icu
21
21
- maven
22
+ - nginx
22
23
- nodejs-20
23
24
- npm
24
25
- openjdk-17-default-jdk
26
+ - openssl
25
27
environment :
26
28
JAVA_HOME : /usr/lib/jvm/java-17-openjdk
27
29
@@ -77,6 +79,28 @@ subpackages:
77
79
mkdir -p ${{targets.contextdir}}/opt/app-root/src
78
80
cp -r ui-app/dist/* ${{targets.contextdir}}/opt/app-root/src/
79
81
82
+ - name : ${{package.name}}-nginx-config
83
+ description : nginx configuration files for upstream configuration
84
+ pipeline :
85
+ - runs : |
86
+ # Configure certificate and key
87
+ mkdir -p /etc/pki/nginx/private
88
+ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/pki/nginx/private/server.key -out /etc/pki/nginx/server.crt --batch
89
+ chown -R 1001:0 /etc/pki/nginx/ && chmod 755 /etc/pki/nginx/private/server.key /etc/pki/nginx/server.crt
90
+
91
+ # Copy configuration scripts
92
+ config_dest="${{targets.contextdir}}/usr/local/bin/"
93
+ install -Dm644 -o 1001 -g 0 .docker-scripts/create-config.cjs "${config_dest}/create-config.cjs"
94
+ install -Dm644 -o 1001 -g 0 .docker-scripts/update-base-href.cjs "${config_dest}/update-base-href.cjs"
95
+ install -Dm644 -o 1001 -g 0 .docker-scripts/entrypoint.sh "${config_dest}/entrypoint.sh"
96
+ install -Dm644 -o 1001 -g 0 .docker-scripts/nginx.conf "${{targets.contextdir}}/etc/nginx/nginx.conf"
97
+
98
+ # Copy dist files
99
+ cp --chown=1001:0 dist/ ${{targets.contextdir}}
100
+
101
+ # Grant write permission to group
102
+ chmod -R g+w /opt/app-root/src /usr/local/bin/
103
+
80
104
update :
81
105
enabled : true
82
106
github :
You can’t perform that action at this time.
0 commit comments