Skip to content

Commit 95c4ca2

Browse files
committed
Fix fast_statistics
1 parent 81d726d commit 95c4ca2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

backend/nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ http {
3636

3737

3838
# statistics
39-
location = /fast_statistics.json {
40-
alias /var/www/stats/fast_statistics.json;
39+
location = /fast_statistics {
40+
alias /var/www/stats/fast_statistics;
4141
add_header Cache-Control "no-cache, must-revalidate";
4242
}
4343

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ <h2>Графики всякие (изменить название)</h2>
758758
// fast statictics
759759
async function loadFastStats() {
760760
try {
761-
const resp = await fetch('https://147.45.139.11:7881/fast_statistics.json');
761+
const resp = await fetch('https://147.45.139.11:7881/fast_statistics');
762762
const data = await resp.json();
763763
if (data && data.periodStats) {
764764
document.getElementById('fastDay').textContent = `Всего: ${data.periodStats.day.total}, Уникальных: ${data.periodStats.day.unique}`;

0 commit comments

Comments
 (0)