Idea

The purpose of using a reverse proxy is to provide a custom URL and IP address for verifying license keys. For example, this can be useful if the IP must originate from a specific geographical location or if you want to use your own domain. A reverse proxy can accomplish both.

Getting started

To get started, the following steps are recommended:
  1. Obtain a Linux VM.
  2. Install Nginx.
  3. Change the default.conf in the /etc/nginx/conf.d to the one in this repository. The key is to include all the “location” blocks (and add more if necessary), as well as to set the domain name that you will be using.
  4. If you link a subdomain to the VM, you can use Let’s Encrypt to manage the SSL certificate.
The contents of the default.conf is shown below:
server {
    server_name  localhost api.yourdomain.com;
    #listen [::]:80 default_server;


    #access_log  /var/log/nginx/host.access.log  main;

    location /api/key/activate {
        proxy_pass https://api.cryptolens.io/api/key/Activate;
        proxy_hide_header X-AspNet-Version;
        proxy_hide_header X-Powered-By;
        proxy_hide_header Request-Context;
        proxy_hide_header Set-Cookie;
    }
   location /api/key/Activate {
        proxy_pass https://api.cryptolens.io/api/key/Activate;
        proxy_hide_header X-AspNet-Version;
        proxy_hide_header X-Powered-By;
        proxy_hide_header Request-Context;
        proxy_hide_header Set-Cookie;
    }

    location /api/key/createtrialkey {
        proxy_pass https://api.cryptolens.io/api/key/CreateTrialKey;
        proxy_hide_header X-AspNet-Version;
        proxy_hide_header X-Powered-By;
        proxy_hide_header Request-Context;
        proxy_hide_header Set-Cookie;
    }
   location /api/key/CreateTrialKey {
        proxy_pass https://api.cryptolens.io/api/key/CreateTrialKey;
        proxy_hide_header X-AspNet-Version;
        proxy_hide_header X-Powered-By;
        proxy_hide_header Request-Context;
        proxy_hide_header Set-Cookie;
    }
}
The repository with the code is available at: https://github.com/Cryptolens/reverse-proxy