mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 16:54:26 +01:00
Add PGAdmin
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
9ad6f0ad90
commit
c556c54522
2
Makefile
2
Makefile
@ -27,7 +27,7 @@ COMPOSE_FILE := docker-compose.yml
|
|||||||
|
|
||||||
AUTHOR := bensuperpc
|
AUTHOR := bensuperpc
|
||||||
|
|
||||||
IMAGE_NAME := wordpress:6.1.1-php8.1-fpm mariadb:10.10.2 nginx:1.23 certbot/certbot:v1.32.0 phpmyadmin:5.2.0
|
IMAGE_NAME := wordpress:6.1.1-php8.1-fpm mariadb:10.10.2 nginx:1.23 certbot/certbot:v1.32.0 phpmyadmin:5.2.0 dpage/pgadmin4:6.16 lscr.io/linuxserver/qbittorrent:latest
|
||||||
|
|
||||||
#IMAGE_AUTHOR := $(addprefix itzg/, $(IMAGE_NAME))
|
#IMAGE_AUTHOR := $(addprefix itzg/, $(IMAGE_NAME))
|
||||||
|
|
||||||
|
47
nginx-conf/pgadmin.conf
Normal file
47
nginx-conf/pgadmin.conf
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
#include /etc/nginx/conf.d/sub/cache-proxy.conf;
|
||||||
|
|
||||||
|
upstream pgadmin_server {
|
||||||
|
# ip_hash;
|
||||||
|
server pgadmin:80;
|
||||||
|
# server pgadmin:80 weight=1 max_fails=3 fail_timeout=30s;
|
||||||
|
}
|
||||||
|
|
||||||
|
# pgadmin
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
#listen 443;
|
||||||
|
#listen [::]:443;
|
||||||
|
|
||||||
|
server_name pgadmin.bensuperpc.org www.pgadmin.bensuperpc.org;
|
||||||
|
|
||||||
|
include /etc/nginx/conf.d/sub/gzip.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://pgadmin_server;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
|
||||||
|
#proxy_set_header Host $host;
|
||||||
|
#proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
#proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
#proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||||
|
#proxy_set_header X-Forwarded-Server $host;
|
||||||
|
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
|
# Uncomment if you want to enable proxy cache
|
||||||
|
#proxy_cache PROXY;
|
||||||
|
#proxy_cache_valid 200 302 10m;
|
||||||
|
#proxy_cache_valid 301 1h;
|
||||||
|
#proxy_cache_valid any 1m;
|
||||||
|
#proxy_cache_lock on;
|
||||||
|
|
||||||
|
#proxy_ignore_headers Vary;
|
||||||
|
#proxy_hide_header Vary;
|
||||||
|
|
||||||
|
#add_header X-cache $upstream_cache_status;
|
||||||
|
}
|
||||||
|
|
||||||
|
# resolver 8.8.8.8;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user