feat: export to forgeflux/ftest-nginx-proxy

This commit is contained in:
Aravinth Manivannan 2023-10-04 00:37:25 +05:30
parent eb870acdb0
commit 5c6db4bccd
Signed by: realaravinth
GPG key ID: F8F50389936984FF
4 changed files with 0 additions and 45 deletions

View file

@ -1,2 +0,0 @@
FROM nginx
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

View file

@ -1,20 +0,0 @@
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
services:
ftest:
image: "forgeflux/ftest-nginx"
ports:
- 9080:80
container_name: ftest
extra_hosts:
- ftest-backend:host.docker.internal
networks:
- ftest
networks:
ftest:
name: ftest
external: true

View file

@ -1,9 +0,0 @@
#!/bin/bash
docker run \
-d \
--name=ftest \
-p 9080:9000 \
--network=ftest \
--add-host ftest_backend:`/sbin/ip route|awk '/default/ { print $9}'`\
forgeflux/ftest-nginx

View file

@ -1,14 +0,0 @@
server {
listen 9000;
server_name ftest default_server;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://ftest_backend:9000/;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
}