File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ files:
2+ "/sbin/appstart":
3+ mode: "000755"
4+ owner: webapp
5+ group: webapp
6+ content: |
7+ #!/usr/bin/env bash
8+ JAR_PATH=/var/app/current/application.jar
9+
10+ # run app
11+ killalljava
12+ java -Dfile.encoding=UTF-8 -Dspring.profiles.active=dev -jar $JAR_PATH
Original file line number Diff line number Diff line change 1+ commands:
2+ set_time_zone:
3+ command: ln -f -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
Original file line number Diff line number Diff line change 1+ Resources:
2+ AWSEBV2LoadBalancerListener:
3+ Type: 'AWS::ElasticLoadBalancingV2::Listener'
4+ Properties:
5+ DefaultActions:
6+ - Type: redirect
7+ RedirectConfig:
8+ Protocol: HTTPS
9+ Port: '443'
10+ Host: '#{host}'
11+ Path: '/#{path}'
12+ Query: '#{query}'
13+ StatusCode: HTTP_301
14+ LoadBalancerArn:
15+ Ref: AWSEBV2LoadBalancer
16+ Port: 80
17+ Protocol: HTTP
18+ AWSEBV2LoadBalancerListener443:
19+ Type: 'AWS::ElasticLoadBalancingV2::Listener'
20+ Properties:
21+ Certificates:
22+ - CertificateArn: Replace with Certificate ARN
23+ DefaultActions:
24+ - Type: forward
25+ TargetGroupArn:
26+ Ref: AWSEBV2LoadBalancerTargetGroup
27+ LoadBalancerArn:
28+ Ref: AWSEBV2LoadBalancer
29+ Port: 443
30+ Protocol: HTTPS
You can’t perform that action at this time.
0 commit comments