2022-10-05 02:51:52 -05:00
|
|
|
# 2022-10-05 Hyperling
|
2023-07-05 20:02:50 -07:00
|
|
|
# Create the nginx environment for a reverse proxy.
|
|
|
|
# https://docs.docker.com/engine/reference/builder/
|
2022-10-05 02:51:52 -05:00
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
|
2023-07-09 06:36:58 -07:00
|
|
|
## Configuration Files ##
|
2023-07-06 06:50:46 -07:00
|
|
|
# Clear old configurations.
|
2023-07-08 12:28:27 -07:00
|
|
|
RUN rm -rfv /etc/nginx/conf.d
|
2023-07-05 20:02:50 -07:00
|
|
|
# Add all the configuration files to the environment.
|
2022-10-05 02:51:52 -05:00
|
|
|
COPY ./config/nginx.conf /etc/nginx/nginx.conf
|
2023-07-08 12:28:27 -07:00
|
|
|
COPY ./config/conf.d /etc/nginx/conf.d
|
2023-07-21 22:23:46 -07:00
|
|
|
RUN rm -rfv /etc/nginx/conf.d/README*
|
2023-07-08 12:28:27 -07:00
|
|
|
|
2023-07-09 06:36:58 -07:00
|
|
|
## Hosted Sites ##
|
2023-07-08 12:28:27 -07:00
|
|
|
# Clear old sites.
|
|
|
|
RUN rm -rfv /etc/nginx/html
|
|
|
|
# Add any static HTML websites.
|
|
|
|
COPY ./config/html /etc/nginx/html
|
2023-07-09 06:36:58 -07:00
|
|
|
RUN rm -rfv /etc/nginx/html/README*
|
2023-07-09 16:02:47 -07:00
|
|
|
|
|
|
|
## Upstream Hosts ##
|
|
|
|
RUN rm -rfv /etc/nginx/hosts
|
|
|
|
COPY ./config/hosts /etc/nginx/hosts
|
|
|
|
RUN rm -rfv /etc/nginx/hosts/README*
|
|
|
|
|
2023-07-21 22:23:46 -07:00
|
|
|
## Load Balancing and Host-Based Port Forwarding ##
|
|
|
|
RUN rm -rfv /etc/nginx/load.conf.d
|
|
|
|
COPY ./config/load.conf.d /etc/nginx/load.conf.d
|
|
|
|
RUN rm -rfv /etc/nginx/load.conf.d/README*
|
|
|
|
|