mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
legacy url rewrite support
This commit is contained in:
parent
571e737fe5
commit
32930677b9
@ -1,8 +1,8 @@
|
|||||||
NGINX_SSL=false
|
|
||||||
NGINX_SERVER_NAME=_
|
NGINX_SERVER_NAME=_
|
||||||
|
|
||||||
#Example data
|
#Example data
|
||||||
|
|
||||||
|
#NGINX_REWRITE_LEGACY_URLS=true
|
||||||
#NGINX_SSL=true
|
#NGINX_SSL=true
|
||||||
#NGINX_SERVER_NAME=stage1.gradido.net
|
#NGINX_SERVER_NAME=stage1.gradido.net
|
||||||
#NGINX_SSL_CERTIFICATE=/etc/letsencrypt/live/stage1.gradido.net/fullchain.pem
|
#NGINX_SSL_CERTIFICATE=/etc/letsencrypt/live/stage1.gradido.net/fullchain.pem
|
||||||
|
|||||||
@ -65,6 +65,13 @@ server {
|
|||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Legacy URLS
|
||||||
|
set REWRITE_LEGACY_URLS = $NGINX_REWRITE_LEGACY_URLS;
|
||||||
|
if( $REWRITE_LEGACY_URLS = 'true' ){
|
||||||
|
rewrite ^/vue$1 /$1 permanent;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# TODO this could be a performance optimization
|
# TODO this could be a performance optimization
|
||||||
#location /vue {
|
#location /vue {
|
||||||
# alias /var/www/html/gradido/frontend/dist;
|
# alias /var/www/html/gradido/frontend/dist;
|
||||||
|
|||||||
@ -50,6 +50,12 @@ server {
|
|||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Legacy URLS
|
||||||
|
set REWRITE_LEGACY_URLS = $NGINX_REWRITE_LEGACY_URLS;
|
||||||
|
if( $REWRITE_LEGACY_URLS = 'true' ){
|
||||||
|
rewrite ^/vue$1 /$1 permanent;
|
||||||
|
}
|
||||||
|
|
||||||
# TODO this could be a performance optimization
|
# TODO this could be a performance optimization
|
||||||
#location /vue {
|
#location /vue {
|
||||||
# alias /var/www/html/gradido/frontend/dist;
|
# alias /var/www/html/gradido/frontend/dist;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user