optimize nginx

This commit is contained in:
Stille 2022-01-06 15:11:54 +08:00
parent 9f22058ed1
commit 93f79f7e7e
9 changed files with 32 additions and 37 deletions

View File

@ -35,10 +35,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -55,7 +55,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -35,10 +35,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -55,7 +55,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -36,10 +36,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -56,7 +56,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -36,10 +36,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -56,7 +56,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -35,10 +35,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -53,7 +53,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -35,10 +35,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -53,7 +53,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -36,10 +36,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -54,7 +54,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -36,10 +36,10 @@ services:
# ---------------------------------------- ttrss ---------------------------------------- # # ---------------------------------------- ttrss ---------------------------------------- #
freshrss-db: freshrss.db:
image: postgres:12-alpine image: postgres:12-alpine
# container_name: freshrss-db # container_name: freshrss.db
hostname: freshrss-db hostname: freshrss.db
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
@ -54,7 +54,7 @@ services:
hostname: freshrss-app hostname: freshrss-app
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- freshrss-db - freshrss.db
volumes: volumes:
- ./data:/var/www/FreshRSS/data - ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions - ./extensions:/var/www/FreshRSS/extensions

View File

@ -21,11 +21,6 @@ server {
client_max_body_size 100m; client_max_body_size 100m;
client_body_buffer_size 128k; client_body_buffer_size 128k;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
} }
} }