Home > Backend Development > PHP Tutorial > TYK configures SSL solution

TYK configures SSL solution

WBOY
Release: 2016-07-29 08:57:02
Original
1234 people have browsed it

1. nginx+tyk (tyk still uses http, nginx uses https+proxy_pass forwarding)

Test is feasible

2. Tyk configuration file configuration uses https

Reference link: https:/ /github.com/TykTechnologies/tyk/issues/181

1. Modify the configuration file: /opt/tyk-gateway/tyk.conf

Modify the port to 443

Modify the hostname to: mydomain.com

Add configuration:

<span>"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"
      }
    ]
  }</span>
Copy after login

2. Modify DashBoard configuration file: /opt/tyk-dashboard/tyk_analytics.conf

Modify under tyk_api_config Host is https://mydomain.com

Modify the Port under tyk_api_config to: 443

Then, restart all services of tyk

The above introduces the TYK configuration SSL solution, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template