Skip to content

Commit efa5ff8

Browse files
authored
Merge pull request #1 from sehlceris/sehlceris.update-default-build-arg
Set default CONF_TYPE build arg in Dockerfile and add README
2 parents ed0dca7 + c2356aa commit efa5ff8

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM nginx:latest
33

44

5-
ARG CONF_TYPE
5+
ARG CONF_TYPE=default
66

77
# Copy the custom Nginx configuration file to the container
88
COPY ${CONF_TYPE}.conf /etc/nginx/conf.d/nginx-template.conf

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# coolify-nginx-reverse-proxy
2+
3+
# running on coolify
4+
5+
- Create a resource under a project
6+
- Docker Image: `ghcr.io/andreitere/coolify-nginx-reverse-proxy` Tag: `latest`
7+
- Env Var `PROXY_HOST` set to something like: `http://192.168.1.21:8123`
8+
- Set the domain you want to proxy, e.g. `https://test001.mydomain.com`
9+
- Save and redeploy
10+
11+
# running locally
12+
13+
```shell
14+
docker run \
15+
--rm \
16+
-e PROXY_HOST=http://192.168.1.21:8123 \
17+
-p 80:80 \
18+
--build-arg CONF_TYPE=${CONF_TYPE:-default} \
19+
ghcr.io/andreitere/coolify-nginx-reverse-proxy:latest
20+
```

0 commit comments

Comments
 (0)