mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-01-18 18:56:26 +00:00
Update PayPal donation URL
This commit is contained in:
parent
32a95dd95a
commit
a16e076cb6
1
cdn.tf
1
cdn.tf
@ -11,6 +11,7 @@ resource "aws_lambda_function" "redirect" {
|
||||
role = aws_iam_role.basic_lambda_role.arn
|
||||
runtime = "python3.9"
|
||||
timeout = 3
|
||||
source_code_hash = data.archive_file.lambda.output_base64sha256
|
||||
}
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@ def handler(event, context):
|
||||
site = uri.replace("/site/", "")
|
||||
return redirect('https://sondehub.org/#!site=' + site)
|
||||
if uri.startswith('/go/donate'):
|
||||
return redirect('https://www.paypal.com/donate?business=YK2WHT6RNSYH8&item_name=SondeHub+Database+funding¤cy_code=USD')
|
||||
return redirect('https://www.paypal.com/donate/?hosted_button_id=4V7L43MD5CQ52')
|
||||
if uri.startswith('/go/status'):
|
||||
return redirect("https://cloudwatch.amazonaws.com/dashboard.html?dashboard=SondeHub&context=eyJSIjoidXMtZWFzdC0xIiwiRCI6ImN3LWRiLTE0Mzg0MTk0MTc3MyIsIlUiOiJ1cy1lYXN0LTFfZ2NlT3hwUnp0IiwiQyI6IjNuOWV0Y2ZxZm9zdm11aTc0NTYwMWFzajVzIiwiSSI6InVzLWVhc3QtMTo0ODI5YmQ4MC0yZmYzLTQ0MDktYjI1ZS0yOTE4MTM5YTgwM2MiLCJNIjoiUHVibGljIn0%3D")
|
||||
if uri.startswith('/go/'):
|
||||
|
Loading…
Reference in New Issue
Block a user