jhphon0730

  • 홈
  • 태그

2025/02 3

[WSL2] 특정 포트 열기

규칙 추가New-NetFirewallRule -DisplayName "Allow 8080" -Direction Inbound -Protocol TCP -LocalPort 8080 -Action AllowNew-NetFirewallRule -DisplayName "Allow 3000" -Direction Inbound -Protocol TCP -LocalPort 3000 -Action Allow WSL 내부 IP를 활용하여 바인딩netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8080 connectaddress=[WSL IP] connectport=8080netsh interface portproxy add v4tov4 liste..

Docker 2025.02.17

[Go][gin] 리액트 정적 파일 서빙

package mainimport ( "net/http" "github.com/gin-gonic/contrib/static" "github.com/gin-gonic/gin")func main() { r := gin.Default() r.Use(static.Serve("/", static.LocalFile("./front/build", true))) // SPA Fallback r.NoRoute(func(c *gin.Context) { c.File("./front/dist/index.html") }) api := r.Group("/api") { api.GET("/", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "mes..

Go 2025.02.15

[Go][Gin]분리 된 앱을 배포할 때

서로 다른 컨테이너 끼리는 Network로 이어져야 한다.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES0a8d97dab6ea my-gin-app "./main" 2 minutes ago Up 2 minutes 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp gin-container3e1d890b0212 redis "docker-entrypoint.s…" 21 minute..

Docker 2025.02.13
이전
1
다음
더보기
프로필사진

jhphon0730

  • 전체 (107) N
    • Go (5) N
      • Wails (1)
      • window_api (8)
    • Next.js (4)
    • Nodejs (12)
    • React & Typescript (2)
    • Docker (6)
      • Compose (2)
    • LOVE (1)
    • leetcode , 백준 (57) N
    • Neovim (3)
    • Ubuntu (2)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/02   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

Copyright © Kakao Corp. All rights reserved.

티스토리툴바