Example configuration NginX

Example configuration NginX

The following configuration is a minimum configuration in NginX for using the Agent. Of course, this configuration can be extended and distributed over multiple conf files.

worker_processes  1;
events {
      worker_connections  1024;
}

http {
      include                                mime.types;
      default_type                     application/octet-stream;
      sendfile                               on;

      upstream salureconnect_agent {
            server 127.0.0.1:7070;
      }

      server {
            listen                    80;
            server_name     agent.salureconnect.com;
            return 301 https://$host$request_uri;
      }

      server {
            listen                     443 ssl;
            server_name     agent.salureconnect.com;
            ssl_certificate         c:/nginx/ssl/agent.salureconnect.com-chain.pem;
            ssl_certificate_key     c:/nginx/ssl/agent.salureconnect.com-key.pem;
            
            location / {
                        proxy_http_version       1.1;
                        proxy_pass                                       http://salureconnect_agent;
                        proxy_set_header    Host                            $host;
                        proxy_set_header    X-Real-IP                   $remote_addr;
                        proxy_set_header    Upgrade                    $http_upgrade;
                        proxy_set_header    Connection               "upgrade";
                        proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
                        proxy_set_header    X-Forwarded-Proto   $scheme;
            }
      }
}

    • Related Articles

    • Requirements and installation

      In order to run the agent correctly, the following setup is required. Hard- en software requirements Windows Server 2012 64 bit or 2016 64 bit with 8 GB Ram, minimal of 2 CPU cores with 2.40 GhZ, 150 GB hard drive; Connection to the internet ...
    • Voorbeeld configuration IIS

      Installeer Application Request Routing (ARR) De eerste stap is het installeren van de add-on module voor Application Request Routing voor IIS. Met Windows Server 2012 R2 of latere versies zoals Windows Server 2016 en 2018 kunt u de Microsoft Web ...
    • Integration Between AFAS and Entra ID (Azure AD)

      Integration Between AFAS and Entra ID (Azure AD) Our interface between AFAS Profit and Microsoft Entra ID keeps your employee data consistent and secure — automatically. When someone joins, leaves, or changes roles in AFAS, the interface ensures that ...
    • Integration Between AFAS and Entra ID (Azure AD)

      Integration Between AFAS and Entra ID (Azure AD) Our interface between AFAS Profit and Microsoft Entra ID keeps your employee data consistent and secure — automatically. When someone joins, leaves, or changes roles in AFAS, the interface ensures that ...
    • Setup an automated data interface between Factorial and Sage

      What is this guide for? This guide walks you through setting up an automated data interface between Factorial and Sage 100. Once complete, employee data will flow from Factorial into Sage automatically — no manual exports, no copy-pasting, no ...