Use a vhost.d in current folder.
This commit is contained in:
parent
b39fdf05d0
commit
ba9323950b
@ -12,7 +12,7 @@ services:
|
|||||||
- /var/www
|
- /var/www
|
||||||
- /etc/nginx/conf.d
|
- /etc/nginx/conf.d
|
||||||
- /etc/letsencrypt:/etc/letsencrypt:ro
|
- /etc/letsencrypt:/etc/letsencrypt:ro
|
||||||
- /var/docker/proxy/vhost.d:/etc/nginx/vhost.d:ro
|
- ./vhost.d:/etc/nginx/vhost.d:ro
|
||||||
|
|
||||||
dockergen:
|
dockergen:
|
||||||
image: jwilder/docker-gen:latest
|
image: jwilder/docker-gen:latest
|
||||||
@ -29,3 +29,5 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: nginxproxy
|
name: nginxproxy
|
||||||
|
external: true
|
||||||
|
|
||||||
|
15
vhost.d/cloud.typename.fr
Normal file
15
vhost.d/cloud.typename.fr
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
client_max_body_size 10g;
|
||||||
|
|
||||||
|
location ^~ /.well-known {
|
||||||
|
# The following 6 rules are borrowed from `.htaccess`
|
||||||
|
|
||||||
|
rewrite ^/\.well-known/host-meta\.json /public.php?service=host-meta-json last;
|
||||||
|
rewrite ^/\.well-known/host-meta /public.php?service=host-meta last;
|
||||||
|
rewrite ^/\.well-known/webfinger /public.php?service=webfinger last;
|
||||||
|
rewrite ^/\.well-known/nodeinfo /public.php?service=nodeinfo last;
|
||||||
|
|
||||||
|
location = /.well-known/carddav { return 301 /remote.php/dav/; }
|
||||||
|
location = /.well-known/caldav { return 301 /remote.php/dav/; }
|
||||||
|
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
5
vhost.d/docker.typename.fr
Normal file
5
vhost.d/docker.typename.fr
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# disable any limits to avoid HTTP 413 for large image uploads
|
||||||
|
client_max_body_size 10g;
|
||||||
|
|
||||||
|
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486)
|
||||||
|
chunked_transfer_encoding on;
|
1
vhost.d/domain1.typename.fr
Normal file
1
vhost.d/domain1.typename.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 1g;
|
1
vhost.d/domain2.typename.fr
Normal file
1
vhost.d/domain2.typename.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 1g;
|
1
vhost.d/gitea.typename.fr
Normal file
1
vhost.d/gitea.typename.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 5g;
|
1
vhost.d/gitlab.typename.fr
Normal file
1
vhost.d/gitlab.typename.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 100m;
|
1
vhost.d/q.saxtoys.fr
Normal file
1
vhost.d/q.saxtoys.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 1g;
|
1
vhost.d/q.zik-insat.fr
Normal file
1
vhost.d/q.zik-insat.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 10m;
|
1
vhost.d/saxtoys.fr
Normal file
1
vhost.d/saxtoys.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 1g;
|
1
vhost.d/www.saxtoys.fr
Normal file
1
vhost.d/www.saxtoys.fr
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 1g;
|
Loading…
Reference in New Issue
Block a user