NGINX configuration for a non-YNH service (rmfakecloud)

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.10
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: I installed a new systemd service. Details here: From Source - rmfakecloud

Description of my issue

I am trying to serve a new systemd service called rmfakecloud, it is a synchronization service for the reMarkable tablet.

I installed it and it is active and running as a systemd service.

The service content is the following:

[Unit]
Description=rmfakecloud
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/rmfakecloud
EnvironmentFile=/etc/rmfakecloud.conf

[Install]
WantedBy=multi-user.target

The configuration file is detailed here.

As STORAGE_URL I am using a subdomain I created on my yunohost server via webadmin. However, I am facing issues when trying to customize nginx.

My current nginx config under etc/nginx/conf.d/custom.domain.noho.st.conf is the following, as following these instructions:

server {
    listen 443 ssl;
    server_name custom.domain.noho.st;
    client_max_body_size 200M;

    include /etc/nginx/conf.d/security.conf.inc;

    ssl_certificate /etc/yunohost/certs/custom.domain.noho.st/crt.pem;
    ssl_certificate_key /etc/yunohost/certs/custom.domain.noho.st/key.pem;


    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;

        proxy_pass http://custom.domain.noho.st:3000;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

        proxy_read_timeout 1d;
        proxy_send_timeout 1d;
    }

I have also tried using proxy_pass http://localhost:3000; but none of these configurations work. The service is unreachable.

Any hints on how to configure nginx properly?

Hi!

I don’t know about your issue, but I think this app would make a great candidate for packaging, so it would profit the whole community!

It’s a Go software so it’s usually easy to package, you can learn how to here: Introduction to packaging | Yunohost Documentation

And join the packaging chat: Chat rooms | Yunohost Documentation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.