giongto35 / cloud-game

Web-based Cloud Gaming service for Retro Game
https://www.youtube.com/watch?v=GUBrJGAxZZg
Apache License 2.0
2.32k stars 348 forks source link

Update server HTTPS configuration #337

Closed sergystepanov closed 3 years ago

sergystepanov commented 3 years ago

The HTTPS server configuration has been fixed and reworked.

An example of SSL/TLS config:

# ...
coordinator:
  # ...
  # HTTP(S) server config
  server:
    # ...
    https: true
    # Letsencrypt or self cert config
    tls:
      address: :443
      # the public domain of the coordinator
      domain: localhost:8000
      letsencryptUrl:
      # if both are set then will use certs
      # and Letsencryt instead
      httpsCert: localhost.crt
      httpsKey: localhost.key
# ...
worker:
  network:
    # ...
    # make coordinator connection secure (wss)
    secure: true
  # ...  
  server:
    address: :9000
    https: true
    tls:
      address: :444
      # LetsEncrypt config
      # if empty will use URL from Go
      letsencryptUrl:
      # Own certs config
      httpsCert: localhost.crt
      httpsKey: localhost.key
# ...
giongto35 commented 3 years ago

Thanks very much. Let me check