mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-01-25 09:34:23 +00:00
feat: add redirection in nginx-proxy to web container
This commit is contained in:
4
config/docker-compose.yml
Normal file → Executable file
4
config/docker-compose.yml
Normal file → Executable file
@@ -90,8 +90,8 @@ services:
|
|||||||
container_name: guezoloic-web
|
container_name: guezoloic-web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=${HOSTNAME}
|
- VIRTUAL_HOST=${HOSTNAME}, www.${HOSTNAME}
|
||||||
- LETSENCRYPT_HOST=${HOSTNAME}
|
- LETSENCRYPT_HOST=${HOSTNAME}, www.${HOSTNAME}
|
||||||
- LETSENCRYPT_EMAIL=${EMAIL}
|
- LETSENCRYPT_EMAIL=${EMAIL}
|
||||||
networks:
|
networks:
|
||||||
- proxy-network
|
- proxy-network
|
||||||
|
|||||||
1
config/vhost.d/www.HOSTNAME.com
Normal file
1
config/vhost.d/www.HOSTNAME.com
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return 301 https://HOSTNAME.com$request_uri;
|
||||||
Reference in New Issue
Block a user