mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-11-10 04:07:26 +01:00
Update nginx containter
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
de813d0f66
commit
6c244e3e68
@ -21,3 +21,7 @@ services:
|
||||
--webroot-path=/var/www/flask --domain bensuperpc.org --domain www.bensuperpc.org
|
||||
--webroot-path=/var/www/jellyfin --domain jellyfin.bensuperpc.org --domain www.jellyfin.bensuperpc.org
|
||||
--webroot-path=/var/www/wordpress --domain wordpress.bensuperpc.org --domain www.wordpress.bensuperpc.org
|
||||
|
||||
volumes:
|
||||
certbot-cert:
|
||||
name: certbot-cert
|
@ -45,3 +45,15 @@ services:
|
||||
- flask_db
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
name: postgres-data
|
||||
|
||||
# flask:
|
||||
# name: flask
|
||||
# driver: local
|
||||
# driver_opts:
|
||||
# type: bind
|
||||
# device: ":./bensuperpc_website"
|
||||
# o: bind
|
||||
|
@ -15,7 +15,8 @@ services:
|
||||
volumes:
|
||||
- wordpress:/var/www/wordpress
|
||||
- jellyfin:/var/www/jellyfin
|
||||
- ./nginx-conf:/etc/nginx/conf.d
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- certbot-cert:/etc/letsencrypt:ro
|
||||
networks:
|
||||
- app-network
|
||||
|
@ -1,12 +1,6 @@
|
||||
version: "3.9"
|
||||
|
||||
volumes:
|
||||
certbot-cert:
|
||||
name: certbot-cert
|
||||
wordpress:
|
||||
name: wordpress
|
||||
dbdata:
|
||||
name: dbdata
|
||||
qbittorrent-downloads:
|
||||
name: qbittorrent-downloads
|
||||
qbittorrent-conf:
|
||||
@ -19,5 +13,3 @@ volumes:
|
||||
name: jellyfin-movies
|
||||
jellyfin:
|
||||
name: jellyfin
|
||||
postgres-data:
|
||||
name: postgres-data
|
||||
|
@ -54,3 +54,9 @@ services:
|
||||
- wp_db
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
volumes:
|
||||
wordpress:
|
||||
name: wordpress
|
||||
dbdata:
|
||||
name: dbdata
|
32
nginx/nginx.conf
Normal file
32
nginx/nginx.conf
Normal file
@ -0,0 +1,32 @@
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
#gzip on;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
Loading…
Reference in New Issue
Block a user