mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-09-25 10:20:44 +02:00
use cdn for everything
This commit is contained in:
@@ -32,7 +32,7 @@ def lambda_handler(event, context):
|
|||||||
}
|
}
|
||||||
|
|
||||||
s3 = boto3.client('s3')
|
s3 = boto3.client('s3')
|
||||||
bucket = 'deflock-clusters'
|
bucket = 'cdn.deflock.me'
|
||||||
key = 'alpr-counts.json'
|
key = 'alpr-counts.json'
|
||||||
|
|
||||||
s3.put_object(
|
s3.put_object(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
variable "deflock_stats_bucket" {
|
variable "deflock_stats_bucket" {
|
||||||
description = "S3 bucket for the ALPR counts JSON file"
|
description = "S3 bucket for the ALPR counts JSON file"
|
||||||
default = "deflock-clusters"
|
default = "cdn.deflock.me"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "deflock_cdn_bucket" {
|
variable "deflock_cdn_bucket" {
|
||||||
|
|||||||
@@ -71,13 +71,13 @@ export const getSponsors = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const getALPRCounts = async () => {
|
export const getALPRCounts = async () => {
|
||||||
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/alpr-counts.json";
|
const s3Url = "https://cdn.deflock.me/alpr-counts.json";
|
||||||
const response = await apiService.get(s3Url);
|
const response = await apiService.get(s3Url);
|
||||||
return response.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getCities = async () => {
|
export const getCities = async () => {
|
||||||
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/flock_cameras_null.json";
|
const s3Url = "https://cdn.deflock.me/flock_cameras_null.json";
|
||||||
const response = await apiService.get(s3Url);
|
const response = await apiService.get(s3Url);
|
||||||
return response.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user