Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit ee9d38f

Browse files
Changing compose
1 parent 3c6b3ff commit ee9d38f

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!-- START OF TOC !DO NOT EDIT THIS CONTENT MANUALLY-->
2+
**Table of Contents** *generated with [mtoc](https://github.com/containerscrew/mtoc)*
3+
- [Changelog](#changelog)
4+
- [[unreleased]](#[unreleased])
5+
- [[0.1.0] - 2025-01-02](#[0.1.0]---2025-01-02)
6+
<!-- END OF TOC -->
17
# Changelog
28

39
All notable changes to this project will be documented in this file.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ podman-up: ## Run podman-compose
5454
podman-compose -f compose.yml up -d
5555

5656
podman-down: ## Run podman-compose down
57-
podman-compose -f compose.yml down
57+
podman-compose -f compose.yml down

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ mongorestore --uri="mongodb+srv://USERNAME:[email protected]/?retr
178178
* Generate possible public ipv4 https://www.criminalip.io/ip-ranges
179179
* Prometheus metrics
180180
* JWT token
181+
* Build takes too long due to `openssl` dependency.
181182

182183
# Pending to fix
183184

compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ services:
1313
- ./nginx.conf:/etc/nginx/nginx.conf:ro
1414

1515
iproxy:
16-
build:
17-
context: .
18-
dockerfile: ./Dockerfile
16+
# build:
17+
# context: .
18+
# dockerfile: ./Dockerfile
19+
image: docker.io/containerscrew/iproxy:v0.2.0
1920
restart: unless-stopped
2021
container_name: iproxy
2122
networks:
@@ -49,4 +50,4 @@ volumes:
4950
# driver_opts:
5051
# type: none
5152
# device: /mnt/ssd/iproxy
52-
# o: bind
53+
# o: bind

init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ openssl rand -base64 48
55

66
cp .env-example .env
77
echo -e "\nPlease update the compose.yml file with the database password generated above"
8-
echo -e "Please update config.toml with the same username/password\n"
8+
echo -e "Please update config.toml with the same username/password\n"

nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ http {
6060
limit_req zone=mylimit burst=20 nodelay;
6161
limit_except GET { deny all; }
6262

63+
# Rewrite the URI to include /api/v1 before proxying
64+
rewrite ^/(.*)$ /api/v1/$1 break;
65+
6366
proxy_pass http://iproxy:8000;
6467
proxy_set_header Host $host;
6568
proxy_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)