Skip to content

Commit

Permalink
fix: add optional trailing slash for redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
guoard committed Sep 10, 2023
1 parent 7126156 commit 8a49961
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions liara_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,143 +76,143 @@ location ~ ^/app-deploy/([a-z]+)/?$ {
return 301 /app-deploy/$1/getting-started;
}

location ~ ^/instructions/mattermost$ {
location ~ ^/instructions/mattermost/?$ {
return 301 /one-click-apps/mattermost;
}

location ~ ^/instructions/kibana$ {
location ~ ^/instructions/kibana/?$ {
return 301 /one-click-apps/kibana;
}

location ~ ^/instructions/grafana$ {
location ~ ^/instructions/grafana/?$ {
return 301 /one-click-apps/grafana;
}

location ~ ^/instructions/prestashop$ {
location ~ ^/instructions/prestashop/?$ {
return 301 /one-click-apps/prestashop;
}

location ~ ^/databases/mysql-mariadb/install$ {
location ~ ^/databases/mysql-mariadb/install/?$ {
return 301 /databases/mysql/install;
}

location ~ ^/databases/mysql-mariadb/connections$ {
location ~ ^/databases/mysql-mariadb/connections/?$ {
return 301 /databases/mysql/connections;
}

location ~ ^/databases/mysql-mariadb/backup$ {
location ~ ^/databases/mysql-mariadb/backup/?$ {
return 301 /databases/mysql/backup;
}

location ~ ^/databases/mysql-mariadb/restore$ {
location ~ ^/databases/mysql-mariadb/restore/?$ {
return 301 /databases/mysql/restore;
}

location ~ ^/databases/mysql-mariadb/tips$ {
location ~ ^/databases/mysql-mariadb/tips/?$ {
return 301 /databases/mysql/tips;
}

location ~ ^/instructions/asgi$ {
location ~ ^/instructions/asgi/?$ {
return 301 /app-deploy/django/tips#asgi;
}

location ~ ^/app-deploy/laravel/pusher$ {
location ~ ^/app-deploy/laravel/pusher/?$ {
return 301 /app-deploy/laravel/soketi;
}

location ~ ^/one-click-apps/pusher/install$ {
location ~ ^/one-click-apps/pusher/install/?$ {
return 301 /one-click-apps/soketi/install;
}

location ~ ^/one-click-apps/pusher/laravel$ {
location ~ ^/one-click-apps/pusher/laravel/?$ {
return 301 /one-click-apps/soketi/laravel;
}

location ~ ^/app-deploy/nodejs/deploy$ {
location ~ ^/app-deploy/nodejs/deploy/?$ {
return 301 /app-deploy/nodejs/desktop;
}

location ~ ^/app-deploy/laravel/deploy$ {
location ~ ^/app-deploy/laravel/deploy/?$ {
return 301 /app-deploy/laravel/desktop;
}

location ~ ^/app-deploy/django/deploy$ {
location ~ ^/app-deploy/django/deploy/?$ {
return 301 /app-deploy/django/desktop;
}

location ~ ^/app-deploy/static/deploy$ {
location ~ ^/app-deploy/static/deploy/?$ {
return 301 /app-deploy/static/desktop;
}

location ~ ^/app-deploy/vue/deploy$ {
location ~ ^/app-deploy/vue/deploy/?$ {
return 301 /app-deploy/vue/desktop;
}

location ~ ^/app-deploy/react/deploy$ {
location ~ ^/app-deploy/react/deploy/?$ {
return 301 /app-deploy/react/desktop;
}

location ~ ^/app-deploy/angular/deploy$ {
location ~ ^/app-deploy/angular/deploy/?$ {
return 301 /app-deploy/angular/desktop;
}

location ~ ^/app-deploy/php/deploy$ {
location ~ ^/app-deploy/php/deploy/?$ {
return 301 /app-deploy/php/desktop;
}

location ~ ^/app-deploy/docker/deploy$ {
location ~ ^/app-deploy/docker/deploy/?$ {
return 301 /app-deploy/docker/desktop;
}

location ~ ^/app-deploy/netcore/deploy$ {
location ~ ^/app-deploy/netcore/deploy/?$ {
return 301 /app-deploy/netcore/desktop;
}

location ~ ^/app-deploy/flask/deploy$ {
location ~ ^/app-deploy/flask/deploy/?$ {
return 301 /app-deploy/flask/desktop;
}

location ~ ^/app-deploy/php/cloud-storage$ {
location ~ ^/app-deploy/php/cloud-storage/?$ {
return 301 /app-deploy/php/object-storage;
}

location ~ ^/app-deploy/nodejs/cloud-storage$ {
location ~ ^/app-deploy/nodejs/cloud-storage/?$ {
return 301 /app-deploy/nodejs/object-storage;
}

location ~ ^/app-deploy/netcore/cloud-storage$ {
location ~ ^/app-deploy/netcore/cloud-storage/?$ {
return 301 /app-deploy/netcore/object-storage;
}

location ~ ^/app-deploy/flask/cloud-storage$ {
location ~ ^/app-deploy/flask/cloud-storage/?$ {
return 301 /app-deploy/flask/object-storage;
}

location ~ ^/app-deploy/django/cloud-storage$ {
location ~ ^/app-deploy/django/cloud-storage/?$ {
return 301 /app-deploy/django/object-storage;
}

location ~ ^/app-deploy/laravel/cloud-storage$ {
location ~ ^/app-deploy/laravel/cloud-storage/?$ {
return 301 /app-deploy/laravel/object-storage;
}

location ~ ^/domains/management$ {
location ~ ^/domains/management/?$ {
return 301 /domains;
}

location ~ ^/domains/ssl$ {
location ~ ^/domains/ssl/?$ {
return 301 /domains;
}

location ~ ^/instructions/nextjs$ {
location ~ ^/instructions/nextjs/?$ {
return 301 /app-deploy/nextjs/getting-started;
}

location ~ ^/instructions/elasticsearch$ {
location ~ ^/instructions/elasticsearch/?$ {
return 301 /databases/elasticsearch/install;
}

location ~ ^/dns/add-domain$ {
location ~ ^/dns/add-domain/?$ {
return 301 /dns/add-zone;
}

Expand Down

0 comments on commit 8a49961

Please sign in to comment.