diff --git a/README.md b/README.md index 0da6a1a..d219aee 100644 --- a/README.md +++ b/README.md @@ -73,4 +73,37 @@ podman run --network guaca --name hypermole \ - 해당 커맨드는 tmaxcloud platform ps팀에서 사용하기 위해 작성자가 수정한 이미지 - 순수 guacamole 같은 경우 guacamole/guacamole:1.4.0 을 사용 +## Nginx 설정 +``` +server { + server_name hypermole.jhcloud.kr; + location / { + #proxy_pass_request_headers on; + #proxy_ssl_verify off; + #proxy_pass http://127.0.0.1:7900; + #proxy_set_header Host $host; + #proxy_set_header X-Forwarded-Proto https; + #proxy_set_header X-Real-IP $remote_addr; + #proxy_set_header X-Forwarded-for $remote_addr; + #proxy_hide_header X-Frame-Options; + proxy_pass http://localhost:7900; + proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + proxy_cookie_path /guacamole/ /new-path/; + access_log off; + } + + + listen 443 ssl; # managed by Certbot + ssl_certificate_key /home/ps-ftp/ssl/jhcloud.kr.key; + ssl_certificate /home/ps-ftp/ssl/fullchain.cer; + # other details, filled by Certbot + +} +``` +- guacamole 같은 경우 위와 같이 설정을 해야함 +