Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reverse proxy with letsencrypt for cops - conf-file issue

Featured Replies

I try to configure cops with the reverse proxy. The reverse proxy with letsencrypt works fine for me so far (e.g. sonarr, radarr, calibre,... are working perfectly). Unfortunately I can't write the "proxy-conf" for cops correctly.

 

I tried the following:

1. I installed cops with the Host Port 1: 9082 (Container Port: 80)

1. I have created a conf-file \appdata\letsencrypt\nginx\proxy-confs and named it cops.subdomain.conf

2. This is how it looks like:

 

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name cops.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_cops cops;
        proxy_pass http://$upstream_cops:9082;
        
        proxy_set_header Range $http_range;
        proxy_set_header If-Range $http_if_range;
    }
    
    location ~ (/cops)?/socket {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_cops cops;
        proxy_pass http://$upstream_cops:9082; # replace this with IP address and port of Cops
        
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
   }
}

 

My subdomain starts with cops.xxxxxxxxxxxxxxxxxxx, so the server_name should be right. I'm not sure if there is an issue with the proxy_pass.

 

Any ideas? Thx for your help!

  • 1 year later...

I’m facing the same problem, have you solved it?

I've never messed with using container name in the swag config without being on shared network. I would see if changing $upstream_cops cops to $upstream_cops localhost will work.

Or try your server IP instead of localhost

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.