Skip to content

Commit

Permalink
[CHORE] AfterInstall script ์ตœ์ข…
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyineverywhere committed Aug 28, 2023
1 parent 8505a4f commit a67617d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions q-admin/src/main/java/com/qcard/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Excepti
)
.authorizeHttpRequests((auth) ->
auth.requestMatchers(antMatcher("/h2-dev/**")).permitAll()
.requestMatchers(antMatcher("/"),
antMatcher("/error")
).permitAll()
.requestMatchers(antMatcher("/questions/**")).permitAll()
.requestMatchers(antMatcher("/accounts/signup"), antMatcher("/accounts/signin")).permitAll()
.anyRequest().authenticated()
.anyRequest().permitAll()
)
.apply(new JwtSecurityConfig(jwtUtil));

Expand Down
5 changes: 2 additions & 3 deletions scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
CURRENT_CONTAINER=$(sudo docker ps | grep qcard)
CURRENT_CONTAINER=$(sudo docker ps -f "name=qcard")

if [ -z $CURRENT_CONTAINER ]
then
echo "> ํ˜„์žฌ ์‹คํ–‰์ค‘์ธ ๋„์ปค ์ปจํ…Œ์ด๋„ˆ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค."
else
echo "> kill -15 $CURRENT_CONTAINER"
sudo kill -15 $CURRENT_CONTAINER
sleep 5
sudo docker rm -f qcard
fi

0 comments on commit a67617d

Please sign in to comment.