blue8lucian Posted April 16, 2021 Share Posted April 16, 2021 Hello. I need some help configuring nextcloud. I've installed nextcloud using a couple of tutorials from SpaceInvader One. Using his youtube tutorial i've conffigure swag and cloudflare. On my domane made som CNAME subdomains. I've installed nextcloud, configured it, everthing working ok, but when I done the modification on the config.php in nextloud and the swag proxy lost the ability to access nextcloud, When I type https://nextcloud.xxxxxx.xxx the loging page to my unraid gui it appears. How can I fix it? Quote Link to comment
ChrisTech Posted June 25, 2021 Share Posted June 25, 2021 (edited) Seeing what your reverse proxy config is would be helpful. I'm currently using a subdomain, secured by SSL, which I configured via NginxProxyManager. Here's whats currently working for me (censored of course): # ------------------------------------------------------------ # sub.domain.com # ------------------------------------------------------------ server { set $forward_scheme https; set $server "999.999.999.999"; set $port 444; listen 8080; listen [::]:8080; listen 4443 ssl http2; listen [::]:4443; server_name sub.domain.com; # Let's Encrypt SSL include conf.d/include/letsencrypt-acme-challenge.conf; include conf.d/include/ssl-ciphers.conf; ssl_certificate /etc/letsencrypt/live/npm-4/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/npm-4/privkey.pem; # Block Exploits include conf.d/include/block-exploits.conf; # HSTS (ngx_http_headers_module is required) (31536000 seconds = 1 year) add_header Strict-Transport-Security "max-age=31536000;includeSubDomains; preload" always; access_log /config/log/proxy_host-3.log proxy; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_http_version 1.1; location ~ /auth-(.*) { proxy_set_header Host $host; proxy_set_header X-Forwarded-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://999.999.999.999:81/api/?v1/auth&group=$1; } location / { # Force SSL include conf.d/include/force-ssl.conf; # HSTS (ngx_http_headers_module is required) (31536000 seconds = 1 year) add_header Strict-Transport-Security "max-age=31536000;includeSubDomains; preload" always; # Proxy! include conf.d/include/proxy.conf; } # Custom include /data/nginx/custom/server_proxy[.]conf; } Note, there's extras in there (eg. ~ /auth-(.*) ), which isn't required, as I'm using Plex Auth through Tautulli. EDIT: Just realized this post was 2+ months old after I replied. Oh well, maybe it'll be useful to someone. 🤦♂️ Edited June 25, 2021 by ChrisTech Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.