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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ const routes: Routes = [
|
||||
component: IndexComponent,
|
||||
},
|
||||
{
|
||||
path: 'faq',
|
||||
path: 'faq.html',
|
||||
component: FaqComponent,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user