mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-24 21:26:59 +01:00
Activate gzip on Marie's website
This commit is contained in:
parent
00cfb9a1c1
commit
6f003bfa4f
3 changed files with 36 additions and 3 deletions
|
|
@ -11,13 +11,15 @@ services:
|
|||
labels:
|
||||
- "traefik.backend=website-marie"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.frontend.rule=Host:osteopathie.froidmont.org"
|
||||
- "traefik.frontend.rule=Host:osteopathie.froidmont.org,www.osteopathie.froidmont.org"
|
||||
- "traefik.frontend.redirect.regex=^https?://www.osteopathie.froidmont.org/(.*)"
|
||||
- "traefik.frontend.redirect.replacement=https://osteopathie.froidmont.org/$${1}"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.port=80"
|
||||
- "traefik.default.protocol=http"
|
||||
volumes:
|
||||
- /var/lib/website-marie:/usr/share/nginx/html:ro
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
networks:
|
||||
- web
|
||||
restart: always
|
||||
|
||||
|
|
|
|||
31
roles/website-marie-docker/files/website-marie/nginx.conf
Normal file
31
roles/website-marie-docker/files/website-marie/nginx.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
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;
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: Copy searx config
|
||||
- name: Copy website config
|
||||
copy:
|
||||
src: website-marie
|
||||
dest: "{{docker_compose_files_folder}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue