Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to expose services using ngnix or caddy #15

Open
valantur opened this issue Oct 30, 2024 · 2 comments
Open

How to expose services using ngnix or caddy #15

valantur opened this issue Oct 30, 2024 · 2 comments

Comments

@valantur
Copy link

I know the documentation on how to self-host is being written, but I couldn't help myself and tried to set this up on my own!
Can anybody tell me how to properly expose the sync server, event server and auth server URLs using Caddy or Nginx? I believe the desktop client requires these three services to be published, is that right?

Thanks in advance!

@0xGingi
Copy link

0xGingi commented Oct 30, 2024

I just use nginx with a separate config for each subdomain

for example, here's my app subdomain (this is without https, since certbot takes care of that)

you can do the same thing for all the subdomains, just take note of which port you need to proxy for each subdomain, which are:

app: 5364
event: 7264
auth: 8264

optional subdomains/ports:
attachments: 9000
monograph: 6264

server {
    server_name app.domain.com;

    location / {
        proxy_pass http://localhost:5264;
        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_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

    }
}

@guiand888
Copy link

guiand888 commented Nov 30, 2024

That's a lot of ports to expose! Anyone tried running everything on 443 but with one virtual host per service?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants