GilbN

Community Developer
  • Posts

    272
  • Joined

  • Last visited

Everything posted by GilbN

  1. To fix these errors, please make sure that your domain name wasentered correctly and the DNS A record(s) for that domaincontain(s) the right IP address.
  2. This works for me. # LIDARR CONTAINER location ^~ /lidarr { #auth_request /auth-admin; proxy_pass http://192.168.1.34:8686/lidarr; include /config/nginx/proxy.conf; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } Try and remove your trailing / on the proxy_pass line
  3. Copy ..action.d/sendmail-whois.conf to sendmail-whois.local and then edit the last line of the action, changing the sendmail command line part; Hm, when looking at what I posted I just see the same? [nginx-http-auth] enabled = true filter = nginx-http-auth port = http,https logpath = /config/log/nginx/error.log mta = sendmail action = sendmail-whois[name=letsencrypt, dest=<[email protected]>] Fail2Ban" | /usr/sbin/sendmail -t -v -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' -au<username> -ap<password> <dest>
  4. You were missing some parts location /web { proxy_pass http://127.0.0.1:32400; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /plex { proxy_pass http://127.0.0.1/web; }
  5. Copy ..action.d/sendmail-whois.conf to sendmail-whois.local and then edit the last line of the action, changing the sendmail command line part; Thanks will try that
  6. I use this for plex: # PLEX SUB DIR location /plex/ { proxy_pass http://192.168.1.34:32400/; include /config/nginx/SSO.conf; } if ($http_referer ~* /plex/) { rewrite ^/web/(.*) /plex/web/$1? redirect; } SSO.conf client_max_body_size 10m; client_body_buffer_size 128k; proxy_bind $server_addr; proxy_buffers 32 4k; #Timeout if the real server is dead proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; # Advanced Proxy Config send_timeout 5m; proxy_read_timeout 240; proxy_send_timeout 240; proxy_connect_timeout 240; proxy_hide_header X-Frame-Options; # Basic Proxy Config proxy_set_header Host $host:$server_port; 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 https; proxy_redirect http:// $scheme://; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_no_cache $cookie_session; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_headers_hash_max_size 51200; proxy_headers_hash_bucket_size 6400;
  7. Unifi is much easier to do with subdomain. https://gist.github.com/vidia/fbef2ee643b23848d8b24211d5860b78 homeassistant: https://home-assistant.io/docs/ecosystem/nginx_subdomain/ https://home-assistant.io/docs/ecosystem/nginx/ qbit: https://github.com/qbittorrent/qBittorrent/wiki/NGINX-Reverse-Proxy-for-Web-UI just add proxy_pass http://ip:port Also: Do not reverse proxy the unraid gui. Use a vpn instead. https://www.youtube.com/watch?v=I58LTMKyeYw
  8. Join the organizr discord. Soo much easier to troubleshoot. Organizr.us/discord
  9. Then you can do a return 301 server { listen 80; listen 443 ssl http2; server_name domain1.com; return 301 https://$domain2.com$request_uri; }
  10. Your domain provider can probably forward the domain to sub.duck.org Check setting on your domain provider page.
  11. You have a return 301 in your config. Remove that location = / { return 301 /htpc; } Are you not using the Organizr container? You are using the letsencrypt container right? you can try this: #ORGANIZR UPSTREAM upstream organizr-upstream { server 192.168.0.100:Port; keepalive 32; } # ORGANIZR CONTAINER location / { proxy_pass http://organizr-upstream; include /config/nginx/proxy.conf; } Also: join us here https://organizr.us/discord
  12. I'm having some trouble with this. My jail.local in /config looks like this # This is the custom version of the jail.conf for fail2ban # Feel free to modify this and add additional filters # Then you can drop the new filter conf files into the fail2ban-filters # folder and restart the container [DEFAULT] # "bantime" is the number of seconds that a host is banned. bantime = 600 # A host is banned if it has generated "maxretry" during the last "findtime" # seconds. findtime = 600 # "maxretry" is the number of failures before a host get banned. maxretry = 5 [ssh] enabled = false [nginx-http-auth] enabled = true filter = nginx-http-auth port = http,https logpath = /config/log/nginx/error.log mta = sendmail action = sendmail-whois[name=letsencrypt, dest=<[email protected]>] [nginx-badbots] enabled = true port = http,https filter = nginx-badbots logpath = /config/log/nginx/access.log maxretry = 2 [nginx-botsearch] enabled = true port = http,https filter = nginx-botsearch logpath = /config/log/nginx/access.log And in config/action.d I copied the sendmail-whois.conf to sendmail-whois.local # Fail2Ban configuration file # # Author: Cyril Jaquier # # [INCLUDES] before = sendmail-common.conf [Definition] # Option: actionban # Notes.: command executed when banning an IP. Take care that the # command is executed with Fail2Ban user rights. # Tags: See jail.conf(5) man page # Values: CMD # actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n` Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"` From: <sendername> <<sender>> To: <dest>\n Hi,\n The IP <ip> has just been banned by Fail2Ban after <failures> attempts against <name>.\n\n Here is more information about <ip> :\n `/usr/bin/whois <ip> || echo missing whois program`\n Regards,\n Fail2Ban" | /usr/sbin/sendmail -t -v -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' -au<username> -ap<password> <dest> [Init] # Default name of the chain # name = default But I get this in fail2ban.log 2017-11-07 22:16:42,999 fail2ban.jail [310]: INFO Jail 'nginx-http-auth' started 2017-11-07 22:16:43,001 fail2ban.jail [310]: INFO Jail 'nginx-botsearch' started 2017-11-07 22:16:43,002 fail2ban.jail [310]: INFO Jail 'nginx-badbots' started 2017-11-07 22:16:43,009 fail2ban.utils [310]: ERROR printf %b "Subject: [Fail2Ban] letsencrypt: started on `uname -n` Date: `LC_ALL=C date +"%a, %d %h %Y %T %z"` From: Fail2Ban <fail2ban> To: <[email protected]>\n Hi,\n The jail letsencrypt has been started successfully.\n Regards,\n Fail2Ban" | /usr/sbin/sendmail -f fail2ban <[email protected]> -- stderr: 2017-11-07 22:16:43,009 fail2ban.utils [310]: ERROR -- stderr: '/bin/sh: syntax error: unexpected end of file' 2017-11-07 22:16:43,009 fail2ban.utils [310]: ERROR printf %b "Subject: [Fail2Ban] letsencrypt: started on `uname -n` Date: `LC_ALL=C date +"%a, %d %h %Y %T %z"` From: Fail2Ban <fail2ban> To: <[email protected]>\n Hi,\n The jail letsencrypt has been started successfully.\n Regards,\n Fail2Ban" | /usr/sbin/sendmail -f fail2ban <[email protected]> -- returned 2 2017-11-07 22:16:43,010 fail2ban.actions [310]: ERROR Failed to start jail 'nginx-http-auth' action 'sendmail-whois': Error starting action Jail('nginx-http-auth')/sendmail-whois It's like it skips the .local file and uses the sendmail-whois.conf file??? I event completely removed the container and deleted the image and /config folder, but this still happens. When I bash into the container and do this: sendmail -t -v -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' -auMYEMAILADDRESS -apMYPASSWORD <mail.txt it works just fine. Anyone know whats wrong?
  13. Ah, I think I understand. Your domain provider wont let you create a sub domain? For better troubleshooting go to https://gitter.im/Organizrr/Lobby We all hang out there
  14. Even when you go to localIP:orgport/check.php?
  15. SQlite is installed in the Organizr container. So unless you have installed org in you letsencrypt/nginx www folder and point your config there it should be green. If you go to localIP:port/check.php everything should be green.
  16. It's not possible to do sub directory with Org. You can't add a base URL in settings. Not yet at least. You can do sub domain though.
  17. No It should work on subdirectories. I use It on netdata. Can you post your complete config?
  18. I'm an idiot. How can I stop it and update?
  19. Np. Pro tip, with sub directories you can just type /sonarr or /plexpy in Organizr.
  20. You need to input your domain. It's not possible to access local IP addresses from outside your network without a VPN. So add yourdomain.com/plexpy and so on
  21. In your organizer tabs, do you have http://IP:port or domain.com/service?
  22. I keep getting this error when I try to update the plugin plugin: updating: rclone.plg plugin: downloading: http://beta.rclone.org/rclone-beta-latest-linux-amd64.zip ... done +============================================================================== | Skipping package rclone-2016.11.19-bundle (already installed) +============================================================================== Archive: /boot/config/plugins/rclone-beta/install/rclone-beta-latest.zip creating: /boot/config/plugins/rclone-beta/install/rclone-v1.37-157-g5a3a56ab#U03b2-linux-amd64/ inflating: /boot/config/plugins/rclone-beta/install/rclone-v1.37-157-g5a3a56ab#U03b2-linux-amd64/rclone inflating: /boot/config/plugins/rclone-beta/install/rclone-v1.37-157-g5a3a56ab#U03b2-linux-amd64/README.txt inflating: /boot/config/plugins/rclone-beta/install/rclone-v1.37-157-g5a3a56ab#U03b2-linux-amd64/README.html inflating: /boot/config/plugins/rclone-beta/install/rclone-v1.37-157-g5a3a56ab#U03b2-linux-amd64/rclone.1 inflating: /boot/config/plugins/rclone-beta/install/rclone-v1.37-157-g5a3a56ab#U03b2-linux-amd64/git-log.txt Copy failed - rclone running plugin: run failed: /bin/bash retval: 1