-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add customisable configuration for nginx
- default working directory /srv/sylius can be configured using the WORKING_DIR environment variable. - fastcgi_pass may be configured by the environment variable FASTCGI_PASS
- Loading branch information
1 parent
c1e8f43
commit 9122df2
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ jobs: | |
- name: Docker Login | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKER_REPOSITORY_LOGIN }} | ||
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }} | ||
logout: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
ARG WORKING_DIR=/srv/sylius | ||
|
||
FROM nginx:stable-alpine | ||
|
||
RUN mkdir -p /srv/sylius | ||
ARG WORKING_DIR | ||
|
||
ENV WORKING_DIR=${WORKING_DIR} | ||
ENV FASTCGI_PASS=php:9000 | ||
|
||
RUN mkdir -p ${WORKING_DIR} | ||
|
||
COPY templates/default.conf.template /etc/nginx/templates/ | ||
|
||
COPY conf.d/default.conf /etc/nginx/conf.d/ | ||
WORKDIR ${WORKING_DIR} |
4 changes: 2 additions & 2 deletions
4
nginx/conf.d/default.conf → nginx/templates/default.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters