-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:charmverse/app.charmverse.io into n…
…otify-new-arrivals
- Loading branch information
Showing
255 changed files
with
11,925 additions
and
5,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Do not put any env var or secrets used by the app here. Put in .ebstalk.apps.env/scoutgame.env | ||
# This file should only have | ||
# - env variables referenced in docker-compose file | ||
# - variables needed for the .platform/hooks/predeploy/01_pull_secrets.sh script to run | ||
|
||
option_settings: | ||
aws:elasticbeanstalk:application:environment: | ||
COMPOSE_PROJECT_NAME: "prd" | ||
COMPOSE_PROFILES: "prd-scoutgameadmin" | ||
EBSTALK_ENV_FILE: "scoutgameadmin.env" | ||
SERVICE_ENV: "prd" # this sets the value of datadog env tag | ||
SERVICE_NAME: "scoutgameadmin" | ||
IMGNAME: "scoutgameadmin" | ||
IMGTAG: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
option_settings: | ||
aws:autoscaling:launchconfiguration: | ||
RootVolumeType: gp2 | ||
RootVolumeSize: "24" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# this configures Beanstalk to restart the app if the app's health check fails | ||
Resources: | ||
AWSEBAutoScalingGroup: | ||
Type: "AWS::AutoScaling::AutoScalingGroup" | ||
Properties: | ||
HealthCheckType: ELB | ||
HealthCheckGracePeriod: 300 |
13 changes: 13 additions & 0 deletions
13
.ebextensions/scoutgameadmin/03_env_health_ignore_400.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
option_settings: | ||
aws:elasticbeanstalk:healthreporting:system: | ||
SystemType: enhanced | ||
ConfigDocument: | ||
Rules: | ||
Environment: | ||
Application: | ||
ApplicationRequests4xx: | ||
Enabled: false | ||
ELB: | ||
ELBRequests4xx: | ||
Enabled: false | ||
Version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Adding alarm for degraded state | ||
Resources: | ||
EnvHealthAlarm: | ||
Type: "AWS::CloudWatch::Alarm" | ||
Properties: | ||
AlarmDescription: "A CloudWatch Alarm that triggers when an Elastic Beanstalk Environment is unhealthy." | ||
Namespace: "AWS/ElasticBeanstalk" | ||
MetricName: "EnvironmentHealth" | ||
Dimensions: | ||
- Name: EnvironmentName | ||
Value: { "Ref" : "AWSEBEnvironmentName" } | ||
Statistic: "Average" | ||
Period: "300" | ||
EvaluationPeriods: "2" | ||
Threshold: "19" # a value between 15 and 20. 15 is warning, 20 is degraded | ||
ComparisonOperator: "GreaterThanOrEqualToThreshold" | ||
AlarmActions: | ||
- "arn:aws:sns:us-east-1:310849459438:Production-Alerts" | ||
OKActions: | ||
- "arn:aws:sns:us-east-1:310849459438:Production-Alerts" | ||
TreatMissingData: "notBreaching" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# source: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-httpredirect.html | ||
|
||
################################################################################################### | ||
#### Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
#### | ||
#### Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | ||
#### except in compliance with the License. A copy of the License is located at | ||
#### | ||
#### http://aws.amazon.com/apache2.0/ | ||
#### | ||
#### or in the "license" file accompanying this file. This file is distributed on an "AS IS" | ||
#### BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
#### License for the specific language governing permissions and limitations under the License. | ||
################################################################################################### | ||
|
||
################################################################################################### | ||
#### This configuration file modifies the default port 80 listener attached to an Application Load Balancer | ||
#### to automatically redirect incoming connections on HTTP to HTTPS. | ||
#### This will not work with an environment using the load balancer type Classic or Network. | ||
#### A prerequisite is that the 443 listener has already been created. | ||
#### Please use the below link for more information about creating an Application Load Balancer on | ||
#### the Elastic Beanstalk console. | ||
#### https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-alb.html#environments-cfg-alb-console | ||
################################################################################################### | ||
|
||
Resources: | ||
AWSEBV2LoadBalancerListener: | ||
Type: AWS::ElasticLoadBalancingV2::Listener | ||
Properties: | ||
LoadBalancerArn: | ||
Ref: AWSEBV2LoadBalancer | ||
Port: 80 | ||
Protocol: HTTP | ||
DefaultActions: | ||
- Type: redirect | ||
RedirectConfig: | ||
Host: "#{host}" | ||
Path: "/#{path}" | ||
Port: "443" | ||
Protocol: "HTTPS" | ||
Query: "#{query}" | ||
StatusCode: "HTTP_301" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DOMAIN="https://admin.scoutgame.xyz" | ||
REACT_APP_APP_ENV="production" | ||
NODE_ENV="production" | ||
DATABASE_URL="{{pull:secretsmanager:/io.cv.app/prd/db:SecretString:database_url}}" | ||
AUTH_COOKIE="scoutadmin-session" | ||
AUTH_SECRET="{{pull:secretsmanager:/io.cv.app/prd/auth_secret:SecretString:auth_secret}}" | ||
# apis | ||
GITHUB_ACCESS_TOKEN="{{pull:secretsmanager:/io.cv.app/prd/github:SecretString:scoutgame_github_access_token}}" | ||
NEYNAR_API_KEY="{{pull:secretsmanager:/io.cv.app/prd/neynar:SecretString:neynar_api_key}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.