February 13, 20179 yr So i know this isnt completely related to unraid but i know this forum is very active and alot of knowledge on here. So what im trying to do is have one docker with Nginx on it. Then i want to use this to redirect uses to my other dockers for example nextcloud. I was reading about proxy pass. I dont think im doing something right ill post my config below. So right now it seems like the proxypass is trying to work because it loads the title of the page but it doesnt load the content. I took this config from the letsencrypt docker so everything else is default. # redirect all traffic to https server { listen 80 default_server; server_name _; location ^~ /request { #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; proxy_pass http://192.168.1.90:3000; } #return 301 https://$host$request_uri; } # main server block server { listen 443 ssl; root /config/www; index index.html index.htm index.php; server_name _; ssl_certificate /config/keys/letsencrypt/fullchain.pem; ssl_certificate_key /config/keys/letsencrypt/privkey.pem; ssl_dhparam /config/nginx/dhparams.pem; ssl_ciphers<took out incase its security issue>; ssl_prefer_server_ciphers on; #client_max_body_size 0; #location / { # try_files $uri $uri/ /index.html /index.php?$args =404; #} location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # With php5-cgi alone: fastcgi_pass 127.0.0.1:9000; # With php5-fpm: #fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include /etc/nginx/fastcgi_params; } # sample reverse proxy config for password protected couchpotato running at IP 192.168.1.50 port 5050 with base url "cp" # notice this is within the same server block as the base # don't forget to generate the .htpasswd file as described on docker hub location ^~ /nextcloud { #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; proxy_pass https://192.168.1.90:444/; } }
February 13, 20179 yr Proxy pass argument should redirect to http instead of https You really should read the thread for the linuxserver letsencrypt container and post there. There are already sample configs for nextcloud reverse proxy there (I believe) and CHBMB has it working. I doubt many people would notice this post here (I randomly saw it)
Archived
This topic is now archived and is closed to further replies.