linuxserver / reverse-proxy-confs

These confs are pulled into our SWAG image: https://github.com/linuxserver/docker-swag
GNU General Public License v3.0
1.33k stars 299 forks source link

[FEAT] Add coder.subdomain.conf.sample to proxy confs #559

Closed paviln closed 1 year ago

paviln commented 1 year ago

Is this a new feature request?

Wanted change

Make a proxy confs sample for coder, there is currently only one for coder-server.

Reason for change

To have a working sample, can't get the proposed code change to work.

Proposed code change

server {
    # HTTP configuration
    listen 80;
    listen [::]:80;

    # HTTP to HTTPS
    if ($scheme != "https") {
        return 301 https://$host$request_uri;
    }

    # HTTPS configuration
    listen 443 ssl;
    listen [::]:443 ssl ipv6only=on;

    server_name coder.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # Allow access to coder
    location / {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app coder;
        set $upstream_port 3000;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    }
}
nemchik commented 1 year ago

If you follow the template https://github.com/linuxserver/reverse-proxy-confs/blob/master/_template.subdomain.conf.sample you should be able to create a working proxy. You could even submit a pull request for it to be included here. Otherwise one of us can probably add it soon-ish and ping you to test.

paviln commented 1 year ago

@nemchik Thanks for your replay. I will give it a try, and get back to you.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity