mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-01-25 03:34:22 +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
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- VIRTUAL_HOST=${HOSTNAME}
|
||||
- LETSENCRYPT_HOST=${HOSTNAME}
|
||||
- VIRTUAL_HOST=${HOSTNAME}, www.${HOSTNAME}
|
||||
- LETSENCRYPT_HOST=${HOSTNAME}, www.${HOSTNAME}
|
||||
- LETSENCRYPT_EMAIL=${EMAIL}
|
||||
networks:
|
||||
- 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