1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix faq and downloads routing

This commit is contained in:
Maksym Pavlenko
2019-06-02 21:14:39 -07:00
parent 3ed2533496
commit 7ce47b7c72
3 changed files with 7 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ http {
# Cache media: images, icons, video, audio, HTC
# See https://serversforhackers.com/c/nginx-caching
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|ogg|ogv|webm|htc)$ {
expires 3M;
access_log off;
add_header Cache-Control "public";
@@ -78,6 +78,10 @@ http {
proxy_pass http://api;
}
location ~* \.(?:html)$ {
try_files $uri /index.html;
}
location / {
try_files $uri $uri.html $uri/ @api;
}

View File

@@ -9,7 +9,7 @@ const routes: Routes = [
component: IndexComponent,
},
{
path: 'faq',
path: 'faq.html',
component: FaqComponent,
},
];

View File

@@ -41,6 +41,6 @@
</div>
<app-footer class="bottom-links">
<a routerLink="/faq"><i aria-hidden="true" class="fa fa-question-circle"></i></a>
<a routerLink="/faq.html"><i aria-hidden="true" class="fa fa-question-circle"></i></a>
<a href="https://twitter.com/pod_sync"><i aria-hidden="true" class="fa fa-twitter"></i></a>
</app-footer>