!hokCjFXtQcxTAIXSdZ:matrix.org

#selfhosted

1980 Members
#selfhosted : discussion about self hosted or in house applications and services for private cloud and privacy preservation use cases. inspired by /r/selfhosted community on reddit (no official affiliation). 404 Servers

Load older messages


SenderMessageTime
27 Jan 2022
@jamess7995:matrix.organkelbiter12fixed the login issue, so you're suggesting, I basically remove the lines that aren't trusted proxies in that array?00:32:07
@gabriel:libresolutions.network@gabriel:libresolutions.network joined the room.00:35:27
@gabriel:libresolutions.network@gabriel:libresolutions.network left the room.00:38:12
@jamess7995:matrix.organkelbiter12
In reply to @forestjohnson:cyberia.club
also, at this point I think your problems are almost exclusively nextcloud related. so it might help to go to a nextcloud specific channel, you might have a better chance of finding someone who has done this exact thing before
So I think I need to first figure out what's running the webserver for nextcloud, NPM, is using Nginx, but NPM is using Nginx, based off this
01:01:47
@jamess7995:matrix.organkelbiter12
[root@docker-236b0aba1a38:/etc/nginx]# cat /var/www/html/index.html 
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Default Site</title>
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <style>
            .jumbotron { margin-top: 50px; }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="jumbotron">
                <h1>Congratulations!</h1>
                <p>You've successfully started the Nginx Proxy Manager.</p>
                <p>If you're seeing this site then you're trying to access a host that isn't set up yet.</p>
                <p>Log in to the Admin panel to get started.</p>
            </div>
            <p class="text-center"><small>Powered by <a href="https://github.com/jc21/nginx-proxy-manager" target="_blank">Nginx Proxy Manager</a></small></p>
        </div>
    </body>
</html>
[root@docker-236b0aba1a38:/etc/nginx]# 
01:02:00
@jamess7995:matrix.organkelbiter12But I think nextcloud's container is using apache based on this, so I think I need to basically allow apache to use 44301:02:41
@jamess7995:matrix.organkelbiter12
root@7792ac3452db:/var/www# cat /etc/apache2/sites-available/000-default.conf | tail -20
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
``` which maybe just isn't the default
01:02:50
@jamess7995:matrix.organkelbiter12 *
root@7792ac3452db:/var/www# cat /etc/apache2/sites-available/000-default.conf | tail -20
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf

which maybe just isn't the default

01:03:08
@brandonstaab:matrix.orgBrandonIf you wanna take the easy way out, mail-in-a-box will setup nextcloud and an email server with ssl and spam assassin. It's a single command so not much to it01:04:23
@jamess7995:matrix.organkelbiter12tempting, but I feel like there wouldn't be as much customization, and this feels like a simple problem, that I should learn how to fix without any hack jobs01:05:19
@brandonstaab:matrix.orgBrandonI agree that not using an installer is probably better if you can go that route. But if you don't already have an email server, it is worth considering01:07:39
@jamess7995:matrix.organkelbiter12
In reply to @brandonstaab:matrix.org
I agree that not using an installer is probably better if you can go that route. But if you don't already have an email server, it is worth considering
I'll leave that in the back pocket for now then, thank you!
01:08:47
@jamess7995:matrix.organkelbiter12All these articles are talking about this path "sudo nano /etc/apache2/sites-available/nextcloud.conf" for a regular install of nextcloud with apache, however, I've already got it installed, and I don't have these files, in the docker container, anyone know where these files could be instead01:10:55
@brandonstaab:matrix.orgBrandon You could try something like find / -name "nextcloud.conf" 01:15:55
@jamess7995:matrix.organkelbiter12
In reply to @brandonstaab:matrix.org
You could try something like find / -name "nextcloud.conf"

does this mean it's non existent

root@7792ac3452db:/etc/apache2# find / -name "nextcloud.conf"
find: '/proc/37/map_files': Permission denied
find: '/proc/38/map_files': Permission denied
find: '/proc/39/map_files': Permission denied
find: '/proc/66/map_files': Permission denied
find: '/proc/68/map_files': Permission denied
find: '/proc/72/map_files': Permission denied
find: '/proc/74/map_files': Permission denied
find: '/proc/75/map_files': Permission denied
find: '/proc/76/map_files': Permission denied
find: '/proc/77/map_files': Permission denied
01:16:52
@brandonstaab:matrix.orgBrandonyou would have to be root to look inside those directories01:17:32
@jamess7995:matrix.organkelbiter12I am root01:17:45
@jamess7995:matrix.organkelbiter12root@7792ac3452db01:17:54
@brandonstaab:matrix.orgBrandonhmmm, you can safely ignore them then. those aren't even directories01:18:22
@brandonstaab:matrix.orgBrandon it takes a while to scan every file on your disk, you can also search for a pattern like find / -name "*.conf" 01:20:08
@jamess7995:matrix.organkelbiter12

So these ones seem relevent

/etc/apache2/ports.conf
/etc/apache2/sites-available/000-default.conf
/etc/apache2/sites-available/default-ssl.conf
/etc/apache2/sites-enabled/000-default.conf
/etc/apache2/apache2.conf
01:21:32
@brandonstaab:matrix.orgBrandonthose are most likely default files that come with Apache, not nextcloud, but you could open them up to find out01:22:48
@jamess7995:matrix.organkelbiter12
In reply to @brandonstaab:matrix.org
those are most likely default files that come with Apache, not nextcloud, but you could open them up to find out
I cated them out, no nextcloud mentions
01:23:20
@jamess7995:matrix.organkelbiter12Like I'd love to follow something like this, but I already have nextcloud running, and this would create a "new" nextcloud from how I'm reading01:23:55
@jamess7995:matrix.organkelbiter12clipboard.png
Download clipboard.png
01:24:12
@brandonstaab:matrix.orgBrandonI would assume you would want those files inside your docker container. Have you checked looking for them inside the container? Does the container have persistent storage?01:29:05
@jamess7995:matrix.organkelbiter12
In reply to @brandonstaab:matrix.org
I would assume you would want those files inside your docker container. Have you checked looking for them inside the container? Does the container have persistent storage?
It does have persistent storage to my knowledge, it's just that those files don't exist and I do have a partially working nextcloud website so idk where the disconnect is, I finally cleared up part of it, nextcloud's docker page does in fact say the default base image "nextcloud" uses apache"
01:30:19
@brandonstaab:matrix.orgBrandon Maybe you could try making a file inside the container and see if it persists as expected. I have had issues with that in the past. It would let you figure out where your containers are storing stuff too. You could then go looking for the nextcloud.conf file. Where you running Apache in a container or just NextCloud? 01:39:24
@jamess7995:matrix.organkelbiter12
In reply to @brandonstaab:matrix.org
Maybe you could try making a file inside the container and see if it persists as expected. I have had issues with that in the past. It would let you figure out where your containers are storing stuff too. You could then go looking for the nextcloud.conf file. Where you running Apache in a container or just NextCloud?
Sorry, had to go give someone a ride, think I’ll be home in the next 40 minutes or less. I could touch /foo.bar, restart Nextcloud, and see. Imagine it’ll stay. Apache comes with the image Nextcloud
02:02:37
@tom.p:tomesh.netTom ,πŸ‡¨πŸ‡¦πŸ³οΈβ€πŸŒˆπŸ’™ set a profile picture.02:10:15

There are no newer messages yet.


Back to Room List