Skip to content

Reverse proxy conf #15

Description

@minnixtx

I just need advice on how to setup my nginx reverse proxy conf. Everything else I have installed within YH is just given a directory on my YH domain, but petrolette requires it's own domain so I gave it one. My proxy is on its own server within my LAN. My YH proxy looks like this:

server {

   listen         443;
   listen    [::]:443;
   server_name    yuno.mydomain.com;

   location / {
        proxy_pass         https://192.168.57.203;
        proxy_redirect     off;
        proxy_read_timeout 60s;

        proxy_set_header          Host           yuno.mydomain.com;
        proxy_set_header          X-Real-IP       $remote_addr;
        proxy_set_header          X-Forwarded-For $proxy_add_x_forwarded_for;

        client_max_body_size 50M;
   }

   access_log /var/log/nginx/yunohost_access.log;
   error_log /var/log/nginx/yunohost_error.log error;
    ssl_certificate /etc/letsencrypt/live/yuno.mydomain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/yuno.mydomain.com/privkey.pem; # managed by Certbot

}

I'm not that familiar with how yunohost handles root domains other than its own. How should my petrolette conf look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions