How to configure SSL for TYK

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.