: This article describes how to configure SSL for TYK. For more information about PHP tutorials, see. I. nginx + tyk (tyk still uses http, and nginx uses https + proxy_pass for forwarding)
Feasible test
II. configure https in the tyk configuration file
Reference: https://github.com/TykTechnologies/tyk/issues/181
1. modify the configuration file:/opt/tyk-gateway/tyk. conf.
Change the port to 443
Modify the hostname to mydomain.com.
Add configuration:
"Http_server_options": {"use_ssl": true, "server_name": "* .mydomain.com", "min_version": 2, "certificates": [{"domain_name ": "* .mydomain.com", "cert_file": "/opt/tyk-gateway/ssl/mydomain. crt "," key_file ":"/opt/tyk-gateway/ssl/mydomain. key "}]}
|
2. modify the DashBoard configuration file:/opt/tyk-dashboard/tyk_analytics.conf
Modify Host under tyk_api_config as https://mydomain.com
Modify the Port in tyk_api_config to 443.
Restart all services of tyk.
The preceding section describes how to configure SSL for TYK, including related content. if you are interested in the PHP Tutorial.