These are chat archives for allegro/ralph

21st
Dec 2017
cosmo222
@cosmo222
Dec 21 2017 11:44
Hi i just finish installation ralph on my test server, is it possibility to configure apache or nginx to run as a webserver to ralph?
Krzysztof Łuczak
@vizarch
Dec 21 2017 12:14
nginx simple config with https
server {
    listen 80;
    server_name yourdomain.com;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl; 
    server_name yourdomain.com;
     access_log /var/log/nginx/ralph_access.log;
    error_log /var/log/nginx/ralph_error.log;

    ssl on;
    ssl_certificate /etc/nginx/ssl/cert.cert;
    ssl_certificate_key /etc/nginx/ssl/private.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_http_version 1.1;
        proxy_set_header Host $http_host;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forward-Proto http;
        proxy_set_header X-Nginx-Proxy true;

        proxy_redirect off;
    }
}
cosmo222
@cosmo222
Dec 21 2017 12:57
It's not working, if it change something I didn't installed ralph using docker
Krzysztof Łuczak
@vizarch
Dec 21 2017 14:46
i installed ralph in standard way (not docker) then install nginx, put config and run ralph in nohup on port 8000
cosmo222
@cosmo222
Dec 21 2017 14:54
Ok i will try this