server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    server_name hrm.libraryofcode.org;
    ssl_certificate /etc/nginx/ssl/org.chain.crt;
    ssl_certificate_key /etc/nginx/ssl/org.key.pem;
    ssl_protocols TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
    # ssl_dhparam /etc/nginx/dhparam.pem;
    ssl_ecdh_curve secp384r1;
    #root /var/www/orangehrm;
    #index  index.php index.html index.htm;
    #client_max_body_size 100M;
    #proxy_connect_timeout 1800s;
    #proxy_send_timeout 1800s;
    #proxy_read_timeout 1800s;
    #fastcgi_send_timeout 1800s;
    #fastcgi_read_timeout 1800s;
    location / {
        #try_files $uri $uri/ /index.php?$uri&$args;
    proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_pass http://localhost:6969;

proxy_read_timeout 90;

proxy_redirect http://localhost:6969 https://hrm.libraryofcode.org;
    }

    #location ~ \.php$ {
    #     include snippets/fastcgi-php.conf;
    #     fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
    #     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    #     include fastcgi_params;
    #}
}