Skip to content

Commit

Permalink
disable tls
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 13, 2024
1 parent c39dfe4 commit b102c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
36 changes: 0 additions & 36 deletions .github/actions/deploy/backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,8 @@ runs:

- name: Deploy to my EC2 instance
uses: easingthemes/[email protected]
# env:
# SSH_PRIVATE_KEY: ${{ inputs.aws_ec2_private_key }}
# SOURCE: "./app"
# REMOTE_HOST: "ec2-34-213-48-149.us-west-2.compute.amazonaws.com"
# REMOTE_USER: "ec2-user"
# TARGET: "/"
with:
REMOTE_HOST: 'ec2-52-56-62-119.eu-west-2.compute.amazonaws.com'
REMOTE_USER: 'ec2-user'
SSH_PRIVATE_KEY: ${{ inputs.aws_ec2_private_key }}
SOURCE: 'go/bin/'

# - name: Deploy to S3
# working-directory: ./go
# shell: bash
# env:
# AWS_ACCESS_KEY_ID: ${{ inputs.aws_access_key_id }}
# AWS_SECRET_ACCESS_KEY: ${{ inputs.aws_secret_access_key }}
# AWS_REGION: ${{ inputs.aws_region }}
# AWS_BUCKET_NAME: ${{ inputs.aws_bucket_name }}
# run: |
# # Sync the build folder to the S3 bucket
# aws s3 cp ./bin.zip s3://getstronger-binaries

# - name: Deploy to EC2
# shell: bash
# env:
# EC2_HOST: "ip-172-31-36-227.eu-west-2.compute.internal"
# run: |
# chmod 600 ~/.ssh/id_rsa
# scp -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ./app ec2-user@$EC2_HOST:~/app
# ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ec2-user@$EC2_HOST << EOF
# pkill app || true
# nohup ./app &
# EOF
#
# # Set up SSH for the EC2 connection
# - name: Add SSH Key
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ inputs.AWS_EC2_PRIVATE_KEY }}
5 changes: 4 additions & 1 deletion go/rpc/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ func registerHandlers(lc fx.Lifecycle, handlers []Handler, options []connect.Han
lc.Append(fx.Hook{
OnStart: func(_ context.Context) error {
go func() {
if err := http.ListenAndServeTLS(":1234", certFile, keyFile, h2c.NewHandler(mux, &http2.Server{})); err != nil {
if err := http.ListenAndServe(":1234", h2c.NewHandler(mux, &http2.Server{})); err != nil {
panic(err)
}
//if err := http.ListenAndServeTLS(":1234", certFile, keyFile, h2c.NewHandler(mux, &http2.Server{})); err != nil {
// panic(err)
//}
}()
return nil
},
Expand Down

0 comments on commit b102c4d

Please sign in to comment.