-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,12 @@ inputs: | |
cookie_domain: | ||
description: "Cookie Domain" | ||
required: true | ||
jwt_access_token_key: | ||
description: "JWT Access Token Key" | ||
required: true | ||
jwt_refresh_token_key: | ||
description: "JWT Refresh Token | ||
required: true | ||
runs: | ||
using: 'composite' | ||
|
@@ -77,6 +83,8 @@ runs: | |
echo SERVER_CERT_PATH=${{ inputs.server_cert_path }} >> .env | ||
echo SERVER_KEY_PATH=${{ inputs.server_key_path }} >> .env | ||
echo COOKIE_DOMAIN=${{ inputs.cookie_domain }} >> .env | ||
echo JWT_ACCESS_TOKEN_KEY=${{ inputs.jwt_access_token_key }} >> .env | ||
echo JWT_REFRESH_TOKEN_KEY=${{ inputs.jwt_refresh_token_key }} >> .env | ||
- name: Deploy to EC2 instance | ||
uses: easingthemes/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package jwt | ||
|
||
import "go.uber.org/fx" | ||
import ( | ||
"os" | ||
|
||
"go.uber.org/fx" | ||
) | ||
|
||
func Module() fx.Option { | ||
return fx.Provide( | ||
func() *Manager { | ||
return NewManager([]byte("access-key"), []byte("refresh-key")) | ||
return NewManager([]byte(os.Getenv("JWT_ACCESS_TOKEN_KEY")), []byte(os.Getenv("JWT_REFRESH_TOKEN_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