need some help to configure Letsencrypt reverse proxy

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • need some help to configure Letsencrypt reverse proxy

      Hello to all, first a little introduction:

      I have several dockers installed on OMV, and my goal is to access it from outside (internet) usingo only port 443 & 80 in the subfoldred way.

      eg:

      mydnsprovidet.com/OMV or mydnsprovidet.com/glances.

      So I installed letsencrypt docker that have 2 good things, 1 a cert for my mydnsprovidet.com and 2 a reverse proxy that if configured in a proper way can solve my needs.

      some previos info:

      I have the next dockers / URL that need to acces:

      1 - pihole : 192.168.1.11:80 <- is in macvlan mode
      2 - glances : omv.local:61208 or 192.168.1.9:61208
      3 - transmission : omv.local:9090/transmission/web or 192.168.1.9:9090/transmission/web
      4 - mldonkey : omv.local:4080 or 192.168.1.9:4080
      5 - hehimdall : omv.local:82 or 192.168.1.9:82

      and finally:

      6 - OMV : omv.local:8080 or 192.168.1.9:8080 & omv.local:4443 or 192.168.1.9:4443




      in Letsencrypt docker I sucessfully generate a htpasswd and I can reach to default server:



      But I can/ access to subfolder /omv:



      OMV 3.0.96 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ;
      Videos: @TechnoDadLife
    • I need to modyfy defaut config file for nginx that reside inside the letsencrypt container and need some help, can enyone can help or guide me to properly configure to show as default web page the heimdall URL = 192.168.1.9:82 and load the omv subfolder module when use https://mydnsprovidet.com/omv

      PD: atached files (default.txt )

      C Source Code

      1. ## Version 2018/04/20 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
      2. # listening on port 80 disabled by default, remove the "#" signs to enable
      3. # redirect all traffic to https
      4. #server {
      5. # listen 80;
      6. # server_name _;
      7. # return 301 https://$host$request_uri;
      8. #}
      9. # main server block
      10. server {
      11. listen 443 ssl default_server;
      12. root /config/www;
      13. index index.html index.htm index.php;
      14. server_name mydnsprovidet.com;
      15. # enable subfolder method reverse proxy confs
      16. include /config/nginx/proxy-confs/*.subfolder.conf;
      17. # all ssl related config moved to ssl.conf
      18. include /config/nginx/ssl.conf;
      19. client_max_body_size 0;
      20. location / {
      21. try_files $uri $uri/ /index.html /index.php?$args =404;
      22. }
      23. location ~ \.php$ {
      24. fastcgi_split_path_info ^(.+\.php)(/.+)$;
      25. # With php7-cgi alone:
      26. fastcgi_pass 127.0.0.1:9000;
      27. # With php7-fpm:
      28. #fastcgi_pass unix:/var/run/php7-fpm.sock;
      29. fastcgi_index index.php;
      30. include /etc/nginx/fastcgi_params;
      31. }
      32. # sample reverse proxy config for password protected OMV running at IP rdns.local port 4443 with base url "omv"
      33. # notice this is within the same server block as the base
      34. # don't forget to generate the .htpasswd file as described on docker hub
      35. # location ^~ /omv {
      36. # auth_basic "Restricted";
      37. # auth_basic_user_file /config/nginx/.htpasswd;
      38. # include /config/nginx/proxy.conf;
      39. # proxy_pass https://192.168.1.9:4443;
      40. # }
      41. #
      42. #}
      43. # sample reverse proxy config without url base, but as a subdomain "cp", ip and port same as above
      44. # notice this is a new server block, you need a new server block for each subdomain
      45. #server {
      46. # listen 443 ssl;
      47. #
      48. # root /config/www;
      49. # index index.html index.htm index.php;
      50. #
      51. # server_name cp.*;
      52. #
      53. # include /config/nginx/ssl.conf;
      54. #
      55. # client_max_body_size 0;
      56. #
      57. # location / {
      58. # auth_basic "Restricted";
      59. # auth_basic_user_file /config/nginx/.htpasswd;
      60. # include /config/nginx/proxy.conf;
      61. # proxy_pass http://192.168.1.50:5050;
      62. # }
      63. #}
      64. # enable subdomain method reverse proxy confs
      65. #include /config/nginx/proxy-confs/*.subdomain.conf;
      66. }
      Display All


      and:


      Source Code

      1. # replace HOSTIP below with the IP address of your omv server
      2. # to enable password access, uncomment the two auth_basic lines
      3. location /omv {
      4. auth_basic "Restricted";
      5. auth_basic_user_file /config/nginx/.htpasswd;
      6. include /config/nginx/proxy.conf;
      7. proxy_pass https://192.168.1.9:4443;
      8. proxy_set_header Range $http_range;
      9. proxy_set_header If-Range $http_if_range;
      10. proxy_set_header Upgrade $http_upgrade;
      11. proxy_set_header Connection $http_connection;
      12. }
      Display All
      Files
      OMV 3.0.96 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ;
      Videos: @TechnoDadLife

      The post was edited 1 time, last by raulfg3 ().

    • I need to modyfy defaut config file for nginx that reside inside the letsencrypt container and need some help, can enyone can help or guide me to properly configure to show as default web page the heimdall URL = 192.168.1.9:82 and load the omv subfolder module when use https://mydnsprovidet.com/omv

      PD: atached files (default.txt )

      C Source Code

      1. ## Version 2018/04/20 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
      2. # listening on port 80 disabled by default, remove the "#" signs to enable
      3. # redirect all traffic to https
      4. #server {
      5. # listen 80;
      6. # server_name _;
      7. # return 301 https://$host$request_uri;
      8. #}
      9. # main server block
      10. server {
      11. listen 443 ssl default_server;
      12. root /config/www;
      13. index index.html index.htm index.php;
      14. server_name mydnsprovidet.com;
      15. # enable subfolder method reverse proxy confs
      16. include /config/nginx/proxy-confs/*.subfolder.conf;
      17. # all ssl related config moved to ssl.conf
      18. include /config/nginx/ssl.conf;
      19. client_max_body_size 0;
      20. location / {
      21. try_files $uri $uri/ /index.html /index.php?$args =404;
      22. }
      23. location ~ \.php$ {
      24. fastcgi_split_path_info ^(.+\.php)(/.+)$;
      25. # With php7-cgi alone:
      26. fastcgi_pass 127.0.0.1:9000;
      27. # With php7-fpm:
      28. #fastcgi_pass unix:/var/run/php7-fpm.sock;
      29. fastcgi_index index.php;
      30. include /etc/nginx/fastcgi_params;
      31. }
      32. # sample reverse proxy config for password protected OMV running at IP rdns.local port 4443 with base url "omv"
      33. # notice this is within the same server block as the base
      34. # don't forget to generate the .htpasswd file as described on docker hub
      35. # location ^~ /omv {
      36. # auth_basic "Restricted";
      37. # auth_basic_user_file /config/nginx/.htpasswd;
      38. # include /config/nginx/proxy.conf;
      39. # proxy_pass https://192.168.1.9:4443;
      40. # }
      41. #
      42. #}
      43. # sample reverse proxy config without url base, but as a subdomain "cp", ip and port same as above
      44. # notice this is a new server block, you need a new server block for each subdomain
      45. #server {
      46. # listen 443 ssl;
      47. #
      48. # root /config/www;
      49. # index index.html index.htm index.php;
      50. #
      51. # server_name cp.*;
      52. #
      53. # include /config/nginx/ssl.conf;
      54. #
      55. # client_max_body_size 0;
      56. #
      57. # location / {
      58. # auth_basic "Restricted";
      59. # auth_basic_user_file /config/nginx/.htpasswd;
      60. # include /config/nginx/proxy.conf;
      61. # proxy_pass http://192.168.1.50:5050;
      62. # }
      63. #}
      64. # enable subdomain method reverse proxy confs
      65. #include /config/nginx/proxy-confs/*.subdomain.conf;
      66. }
      Display All



      and:


      Source Code

      1. # replace HOSTIP below with the IP address of your omv server
      2. # to enable password access, uncomment the two auth_basic lines
      3. location /omv {
      4. auth_basic "Restricted";
      5. auth_basic_user_file /config/nginx/.htpasswd;
      6. include /config/nginx/proxy.conf;
      7. proxy_pass https://192.168.1.9:4443;
      8. proxy_set_header Range $http_range;
      9. proxy_set_header If-Range $http_if_range;
      10. proxy_set_header Upgrade $http_upgrade;
      11. proxy_set_header Connection $http_connection;
      12. }
      Display All




      I suppose that if finally I can configure correctly, I can acces my dockers from internet in this way:

      Source Code

      1. https://mydnsprovidet.com/omv
      2. http://mydnsprovidet.com/pihole
      3. http://mydnsprovidet.com/glances
      4. http://mydnsprovidet.com/transmission/web
      5. http://mydnsprovidet.com/mldonkey
      6. http://mydnsprovidet.com/heimdall
      Display All




      and my next goal can be to configure all dockers to access by https like letsencrytp describe on:
      Images
      • 1.jpg

        196.95 kB, 905×844, viewed 24 times
      OMV 3.0.96 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ;
      Videos: @TechnoDadLife

      The post was edited 1 time, last by raulfg3 ().

    • I need to modyfy defaut config file for nginx that reside inside the letsencrypt container and need some help, can enyone can help or guide me to properly configure to show as default web page the heimdall URL = 192.168.1.9:82 and load the omv subfolder module when use https://mydnsprovidet.com/omv
      OMV 3.0.96 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ;
      Videos: @TechnoDadLife