기본 콘텐츠로 건너뛰기

2019의 게시물 표시

세상 간단한 https(+secured websocket): Caddy

nginx, apache2 같은 걸로 매번 certbot 연동을 통해 https 하는게 지겨워서 알아보니 Caddy라는게 있더라. 설치법은 강하게 크기 위해 알아서 해본다. # cat /etc/caddy/Caddyfile your.shitty.site:8123 {   proxy / localhost:9123 {     websocket     transparent   } } 이건 외부에서 8123으로 들어오는 걸 내부적으로 9123로 맞춰서 https 맞춰주는 reverse proxy. 만일 port를 생략하면 # cat /etc/caddy/Caddyfile your.shitty.site {   proxy / localhost:9123 {     websocket     transparent   } } 기본포트인 443으로 되어 https://your.shitty.site 로 접속이 된다. 요새 말썽이던 cloudflare 버리고 netlify domain이랑 caddy를 쓰니까 앓던 이가 빠진 느낌. 이 조합은 당분간 계속 써야겠다 싶다.

cloudatcost 에서 외부 인터넷 연결이 안될 때

전원 한번 껐다 켰더니 모든 linux 서버들이 다 안된다. https://panel.cloudatcost.com/index.php  에서 해당 서버의 console 버튼 눌러서 보니 ifconfig 해본 결과 실제 panel의 IP정보와 다르게 설정이 되있더라. (덧. 여기서 console 이라고 함은 ssh 터미널 같은 게 아니라 cloudatcost에서 VMWare로 관리하는 웹스크린캐스트 같은 거라고 보면 됨) 근데 windows server는 멀쩡하고 linux 서버만 안되는게 이상해서 ticket 넣었더니  VMWare console로 진입한 뒤 network configuration 을 맞춰보라고 하더라. Fabio P Hello, In the case of the VM with IP 64.137.182.39, you have to go inside the configuration file and edit it. Make sure that all the network configuration is the same as the information shown to you on panel. You will have to do the same for the other two VMs. Let us know if further assistance is required. Have a great day. 음. network configuration 이라니 VMWare의 configuration이 있나? 이것저것 뒤져보다가 도저히 모르겠어서 GG 리붓하고 났더니 이번엔 console 자체도 진입이 안됨. ticket 또 쓰고 reboot 했더니 다시 돌아와서 어떤 거 수정하면 되냐 하고 또 물어봄. 내가 어느정도 알고 있을지를 모르니 첨 부터 자세하게 얘기를 안해주는구나. 얘들 스타일인갑다. 결국 Fabio P Hello, For your Ubuntu machine, you can use this link as a guide h