We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3668e0 + c998d7b commit 0d806d1Copy full SHA for 0d806d1
.github/workflows/dockerimage.yml
@@ -20,3 +20,10 @@ jobs:
20
21
- name: Run nginx -V
22
run: docker run -t ${{ github.repository }} nginx -V
23
+
24
+ - name: Serve a static asset
25
+ run: |
26
+ docker run --detach --rm -p 0.0.0.0:8888:80 -v "$PWD/tests":/static:ro -v "$PWD/tests/static.conf":/etc/nginx/conf.d/static.conf:ro --name test_nginx -t ${{ github.repository }}
27
+ sleep 2; docker ps
28
+ curl -v --compressed 0.0.0.0:8888
29
+ docker logs test_nginx
tests/index.html
@@ -0,0 +1,2 @@
1
+<h1>nginx</h1>
2
+<p>It works!</p>
tests/static.conf
@@ -0,0 +1,13 @@
+server {
+ listen 80;
3
+ server_name localhost;
4
5
+ location / {
6
+ root /static;
7
8
+ gzip_static on;
9
+ brotli_static on;
10
11
+ expires 1d;
12
+ }
13
+}
0 commit comments