chore: build

This commit is contained in:
Xor290
2026-10-26 21:01:06 +01:00
parent 8e36acd812
commit 1eeca2b368
52 changed files with 1206 additions and 253 deletions
+4
View File
@@ -1,2 +1,6 @@
# RustFS
RUSTFS_ACCESS_KEY=JJg3uFeuKUUrdqq4oefQ8sIp6hnI
RUSTFS_SECRET_KEY=7wPrOd1324t411q7VnuzfNkQXCch4U5qqOHx
# Portabase Agent
EDGE_KEY=<A_REMPLIR>
+9
View File
@@ -0,0 +1,9 @@
[[databases]]
name = "Production PostgreSQL - gestion_commande_db"
database = "gestion_commande_db"
type = "postgresql"
username = "admin_gestion_commande_db"
password = "1SWDxH20rV7K2Uc2PNlwCaCxfVZEtKomF0CK9OMh"
port = 5432
host = "127.0.0.1"
generated_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
+17
View File
@@ -45,6 +45,21 @@ services:
networks:
- s3_net
portabase-agent:
image: portabase/agent:latest
container_name: portabase-agent
restart: always
network_mode: host
env_file: .env
environment:
- TZ=Europe/Paris
- DATABASES_CONFIG_FILE=config.toml
volumes:
- ./databases.toml:/config/config.toml:ro
- /var/run/docker.sock:/var/run/docker.sock
- agent-data:/data
- agent-tmp:/tmp
dozzle-agent:
image: amir20/dozzle:latest
command: agent
@@ -60,3 +75,5 @@ networks:
volumes:
nginx_logs:
agent-data:
agent-tmp:
+17 -35
View File
@@ -1,52 +1,34 @@
worker_processes auto;
events {
worker_connections 1024;
}
http {
resolver 127.0.0.11 valid=10s ipv6=off;
server {
listen 80;
server_name _;
return 301 http://$host:9001$request_uri;
}
# ── RustFS Console ──────────────────────────────────────
server {
listen 9001;
server_name _;
access_log /var/log/nginx/rustfs_access.log;
error_log /var/log/nginx/rustfs_error.log;
location / {
set $upstream http://rustfs:9001;
proxy_pass $upstream;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s;
client_max_body_size 500m;
}
}
# ── RustFS S3 API ───────────────────────────────────────
server {
listen 9000;
server_name _;
access_log /var/log/nginx/rustfs_s3_access.log;
error_log /var/log/nginx/rustfs_s3_error.log;
access_log /var/log/nginx/portabase_access.log;
error_log /var/log/nginx/portabase_error.log;
location / {
set $upstream http://rustfs:9000;
proxy_pass $upstream;
proxy_pass http://portabase:80;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_convert_head off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s;
proxy_send_timeout 300s;
client_max_body_size 2g;
}
}