0
submitted 3 weeks ago* (last edited 3 weeks ago) by Tiritibambix@lemmy.ml to c/selfhosted@lemmy.world

That was the solution: UFW was blocking internal traffic. Running ufw allow from 172.16.0.0/12 fixed it.


Hello!

So until now, I’ve been self-hosting at home with my own machines, and this is the first time I’m working with a VPS.

I’m running Nginx Proxy Manager (NPM) and my application in separate Docker containers on my AlphaVPS VPS with the IP address 100.100.10.10. I’ve configured UFW to secure my server, and I’m trying to access my application through a domain using NPM, but I’m getting a 504 Gateway Timeout error.

Here’s what I’ve done so far with UFW:

1. Block All Incoming Traffic by Default

ufw default deny incoming
ufw default allow outgoing

2. Allowed Specific IPs

I’ve allowed specific IPs which are my home and work IP:

ufw allow from 100.100.10.11
ufw allow from 100.100.10.12

3. Allowed Ports for Nginx Proxy Manager

I’ve opened the necessary ports for HTTP (80) and HTTPS (443) to be accessible from the outside:

ufw allow 80
ufw allow 443

What I did in Nginx Proxy Manager:

  • I created an A record for sub.domain.com through my registrar, pointing to the VPS IP (100.100.10.10).
  • In Nginx Proxy Manager, I added a Proxy Host for the domain sub.domain.com, set the IP address (100.100.10.10), and the port of my application inside Docker (e.g., 8000).
  • I also enabled SSL and requested a new certificate for sub.domain.com.

Issue:

Even after setting up everything, I’m facing a 504 Gateway Timeout error when trying to access my application through the domain name.

Could someone help me troubleshoot why I’m getting the 504 Gateway Timeout error? I might have done something wrong as my understanding of this is very basic. Could it be a problem with the UFW setup, or is there something wrong with the Nginx Proxy Manager configuration?

Thanks in advance for your help!

2
My first one ! (lemmy.ml)
submitted 1 month ago by Tiritibambix@lemmy.ml to c/trees@lemmy.world

I know this isn't the best community to post this to but all cannabis growing communities are pretty much inactive and I'm really excited !

I've been growing for years and it's the first time I get a polyploid specimen. Looks neat :)

0

Hello!

I started my journey into self-hosting around 2022, and it's been a long and laborious learning process. I'm not a developer by trade (just a sound engineer and photographer) but I'm curious, and I needed a straightforward and effective application to fill a gap in my photography workflow.

With some guidance from my brother, who knows how to code, and a significant amount of help from AI, I managed to create an application that does exactly what I need. Yeah, I'm sorry I had to rely so heavily on AI, but I can't afford to learn to code entirely since I already have multiple jobs, a lot of hobbies, and a family I want to spend time with :) Anyway, I learned a lot working on this.

I'm sharing this app here in all humility, I'm sure it's all very goofy, but I was hoping it might be useful to some of you somehow. Feel free to check it out and let me know if it helps or if you have any suggestions for improvement. Thanks for being such a supportive community!


ImaGUIck is a user-friendly web application designed around Imagemagick for batch image processing. It offers a very simple graphical interface to resize and convert images with ease. Key features include:

  • Single or Batch Image Processing: Handle individual images or batch process multiple images with ZIP export.
  • Resizing Options: Resize images by specific dimensions, percentage, with aspect ratio preservation or not. You can select 1080p resolution based on the longest edge for social media platforms.
  • Format Support: Supports common, RAW, modern, animation, and vector formats.
  • Automatic Image Enhancement: Optimize dynamic range, correct exposure, and apply sharpening.
  • Image Import from URL: Import images directly from a URL.

You can find it here.

43
submitted 2 months ago* (last edited 2 months ago) by Tiritibambix@lemmy.ml to c/selfhosted@lemmy.world

Hello.

Notesnook is an end-to-end encrypted note taking alternative to Evernote. I wanted to self-host a Notesnook sync server really badly, but I'm a noob. So, I worked hard on it and came up with this noob-proof tutorial on how to set up a Notesnook sync server with local file storage, getting inspiration from the provided docker-compose in the repository.

That's my way of giving back to the self-hosting community. I hope it can help some people.


Overview

This guide will help you set up a self-hosted instance of Notesnook using Docker Compose.


Prerequisites

  • Linux server with Docker and Docker Compose installed.
  • Domain name with the ability to create subdomains.
  • Basic understanding of terminal commands.
  • Ports 5264, 6264, 7264, 8264, 9090 and 9009 available. Or you can change them but take good note of your changes.

1. Directory Structure Setup

Create the required directories:

# Create data directories
mkdir -p /srv/Files/Notesnook/db
mkdir -p /srv/Files/Notesnook/s3
mkdir -p /srv/Files/Notesnook/setup

2. Configuration Files

2.1. Environment File

Create the .env file:

cd /srv/Files/Notesnook/setup
nano .env

Add the following content (modify the values accordingly):

# Instance Configuration
INSTANCE_NAME=My Notesnook
DISABLE_SIGNUPS=false
NOTESNOOK_API_SECRET=your_secure_api_secret_here

# SMTP Configuration
SMTP_USERNAME=your_email@domain.com
SMTP_PASSWORD=your_smtp_password
SMTP_HOST=smtp.your-server.com
SMTP_PORT=587

# Public URLs (replace domain.com with your domain)
AUTH_SERVER_PUBLIC_URL=https://auth.domain.com/
NOTESNOOK_APP_PUBLIC_URL=https://notes.domain.com/
MONOGRAPH_PUBLIC_URL=https://mono.domain.com/
ATTACHMENTS_SERVER_PUBLIC_URL=https://files.domain.com/

# MinIO Configuration
MINIO_ROOT_USER=admin
MINIO_ROOT_PASSWORD=your_secure_password_here

2.2. Docker Compose File

Create the docker-compose.yml file:

nano docker-compose.yml

Paste the following content:

x-server-discovery: &server-discovery
  NOTESNOOK_SERVER_PORT: 5264
  NOTESNOOK_SERVER_HOST: notesnook-server
  IDENTITY_SERVER_PORT: 8264
  IDENTITY_SERVER_HOST: identity-server
  SSE_SERVER_PORT: 7264
  SSE_SERVER_HOST: sse-server
  SELF_HOSTED: 1
  IDENTITY_SERVER_URL: ${AUTH_SERVER_PUBLIC_URL}
  NOTESNOOK_APP_HOST: ${NOTESNOOK_APP_PUBLIC_URL}

x-env-files: &env-files
  - .env

services:
  validate:
    image: vandot/alpine-bash
    entrypoint: /bin/bash
    env_file: *env-files
    command:
      - -c
      - |
        required_vars=(
          "INSTANCE_NAME"
          "NOTESNOOK_API_SECRET"
          "DISABLE_SIGNUPS"
          "SMTP_USERNAME"
          "SMTP_PASSWORD"
          "SMTP_HOST"
          "SMTP_PORT"
          "AUTH_SERVER_PUBLIC_URL"
          "NOTESNOOK_APP_PUBLIC_URL"
          "MONOGRAPH_PUBLIC_URL"
          "ATTACHMENTS_SERVER_PUBLIC_URL"
        )
        for var in "$${required_vars[@]}"; do
          if [ -z "$${!var}" ]; then
            echo "Error: Required environment variable $$var is not set."
            exit 1
          fi
        done
        echo "All required environment variables are set."
    restart: "no"

  notesnook-db:
    image: mongo:7.0.12
    hostname: notesnook-db
    volumes:
      - /srv/Files/Notesnook/db:/data/db
      - /srv/Files/Notesnook/db:/data/configdb
    networks:
      - notesnook
    command: --replSet rs0 --bind_ip_all
    depends_on:
      validate:
        condition: service_completed_successfully
    healthcheck:
      test: echo 'db.runCommand("ping").ok' | mongosh mongodb://localhost:27017 --quiet
      interval: 40s
      timeout: 30s
      retries: 3
      start_period: 60s

  initiate-rs0:
    image: mongo:7.0.12
    networks:
      - notesnook
    depends_on:
      - notesnook-db
    entrypoint: /bin/sh
    command:
      - -c
      - |
        mongosh mongodb://notesnook-db:27017 <<EOF
          rs.initiate();
          rs.status();
        EOF

  notesnook-s3:
    image: minio/minio:RELEASE.2024-07-29T22-14-52Z
    ports:
      - 9009:9000
      - 9090:9090
    networks:
      - notesnook
    volumes:
      - /srv/Files/Notesnook/s3:/data/s3
    environment:
      MINIO_BROWSER: "on"
    depends_on:
      validate:
        condition: service_completed_successfully
    env_file: *env-files
    command: server /data/s3 --console-address :9090
    healthcheck:
      test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
      interval: 40s
      timeout: 30s
      retries: 3
      start_period: 60s

  setup-s3:
    image: minio/mc:RELEASE.2024-07-26T13-08-44Z
    depends_on:
      - notesnook-s3
    networks:
      - notesnook
    entrypoint: /bin/bash
    env_file: *env-files
    command:
      - -c
      - |
        until mc alias set minio http://notesnook-s3:9000/ ${MINIO_ROOT_USER:-minioadmin} ${MINIO_ROOT_PASSWORD:-minioadmin}; do
          sleep 1;
        done;
        mc mb minio/attachments -p

  identity-server:
    image: streetwriters/identity:latest
    ports:
      - 8264:8264
    networks:
      - notesnook
    env_file: *env-files
    depends_on:
      - notesnook-db
    healthcheck:
      test: wget --tries=1 -nv -q  http://localhost:8264/health -O- || exit 1
      interval: 40s
      timeout: 30s
      retries: 3
      start_period: 60s
    environment:
      <<: *server-discovery
      MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/identity?replSet=rs0
      MONGODB_DATABASE_NAME: identity

  notesnook-server:
    image: streetwriters/notesnook-sync:latest
    ports:
      - 5264:5264
    networks:
      - notesnook
    env_file: *env-files
    depends_on:
      - notesnook-s3
      - setup-s3
      - identity-server
    healthcheck:
      test: wget --tries=1 -nv -q  http://localhost:5264/health -O- || exit 1
      interval: 40s
      timeout: 30s
      retries: 3
      start_period: 60s
    environment:
      <<: *server-discovery
      MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/?replSet=rs0
      MONGODB_DATABASE_NAME: notesnook
      S3_INTERNAL_SERVICE_URL: "http://notesnook-s3:9000/"
      S3_INTERNAL_BUCKET_NAME: "attachments"
      S3_ACCESS_KEY_ID: "${MINIO_ROOT_USER:-minioadmin}"
      S3_ACCESS_KEY: "${MINIO_ROOT_PASSWORD:-minioadmin}"
      S3_SERVICE_URL: "${ATTACHMENTS_SERVER_PUBLIC_URL}"
      S3_REGION: "us-east-1"
      S3_BUCKET_NAME: "attachments"

  sse-server:
    image: streetwriters/sse:latest
    ports:
      - 7264:7264
    env_file: *env-files
    depends_on:
      - identity-server
      - notesnook-server
    networks:
      - notesnook
    healthcheck:
      test: wget --tries=1 -nv -q  http://localhost:7264/health -O- || exit 1
      interval: 40s
      timeout: 30s
      retries: 3
      start_period: 60s
    environment:
      <<: *server-discovery

  monograph-server:
    image: streetwriters/monograph:latest
    ports:
      - 6264:3000
    env_file: *env-files
    depends_on:
      - notesnook-server
    networks:
      - notesnook
    healthcheck:
      test: wget --tries=1 -nv -q  http://localhost:3000/api/health -O- || exit 1
      interval: 40s
      timeout: 30s
      retries: 3
      start_period: 60s
    environment:
      <<: *server-discovery
      API_HOST: http://notesnook-server:5264/
      PUBLIC_URL: ${MONOGRAPH_PUBLIC_URL}

networks:
  notesnook:

3. Docker Images Preparation

Pull all required images to avoid timeout issues:

cd /srv/Files/Notesnook/setup
docker pull mongo:7.0.12
docker pull minio/minio:RELEASE.2024-07-29T22-14-52Z
docker pull streetwriters/identity:latest
docker pull streetwriters/notesnook-sync:latest
docker pull streetwriters/sse:latest
docker pull streetwriters/monograph:latest
docker pull vandot/alpine-bash

4. Deployment

Start the services:

cd /srv/Files/Notesnook/setup
docker compose up -d

5. Service Verification

5.1. Check Container Status

docker compose ps

Expected status:

  • Running containers:
    • notesnook-db
    • notesnook-s3
    • identity-server
    • notesnook-server
    • sse-server
    • monograph-server
  • Completed containers (should show Exit 0):
    • validate
    • initiate-rs0
    • setup-s3

5.2. Check Logs

docker compose logs

5.3. Test MinIO Access

Visit: http://your-server:9009/


6. Reverse Proxy Configuration with Nginx and SSL

Enable WebSockets Support for: notes.domain.com (port 5264) - For real-time synchronization
events.domain.com (port 7264) - For real-time notifications

Enable Cache Assets for: mono.domain.com (port 6264) - For optimizing public notes loading

Step 1: Install Certbot

sudo apt-get update
sudo apt-get install certbot python3-certbot-nginx

Step 2: Obtain SSL Certificates

sudo certbot --nginx -d auth.domain.com -d notes.domain.com -d events.domain.com -d mono.domain.com

Step 3: Modify Nginx Configuration

Use the following example configurations for each subdomain:

# Auth Server - Basic (no cache/websocket needed)
server {
    listen 80;
    server_name auth.domain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name auth.domain.com;

    ssl_certificate /etc/letsencrypt/live/auth.domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/auth.domain.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:8264/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

# Notes Server - With WebSocket
server {
    listen 80;
    server_name notes.domain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name notes.domain.com;

    ssl_certificate /etc/letsencrypt/live/notes.domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/notes.domain.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:5264/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 3600;
        proxy_send_timeout 3600;
    }
}

# Events Server - With WebSocket
server {
    listen 80;
    server_name events.domain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name events.domain.com;

    ssl_certificate /etc/letsencrypt/live/events.domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/events.domain.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:7264/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 3600;
        proxy_send_timeout 3600;
    }
}

# Monograph Server - With Cache
server {
    listen 80;
    server_name mono.domain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name mono.domain.com;

    ssl_certificate /etc/letsencrypt/live/mono.domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mono.domain.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:6264/;
        proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
        proxy_cache_valid 200 60m;
        add_header X-Cache-Status $upstream_cache_status;
        expires 1h;
        add_header Cache-Control "public, no-transform";
    }
}

7. Useful Commands

Service Management

# View real-time logs
docker compose logs -f

# View logs for specific service
docker compose logs [service-name]

# Restart specific service
docker compose restart [service-name]

# Stop all services
docker compose down

# Update services
docker compose pull
docker compose up -d

8. Maintenance

8.1. Backup

Regularly backup these directories:

  • /srv/Files/Notesnook/db/ (MongoDB data)
  • /srv/Files/Notesnook/s3/ (MinIO data)
  • /srv/Files/Notesnook/setup/.env (Configuration)

8.2. Updates

To update all services:

cd /srv/Files/Notesnook/setup
docker compose down
docker compose pull
docker compose up -d

9. Troubleshooting

Common Issues:

Service won't start

  • Check logs: docker compose logs [service-name]
  • Verify port availability.
  • Check directory permissions.
  • Verify environment variables.

Database Connection Issues

  • Ensure MongoDB replica set is initialized.
  • Check MongoDB logs: docker compose logs notesnook-db.

Storage Issues

  • Verify MinIO credentials.
  • Check MinIO logs: docker compose logs notesnook-s3.

Email Not Working

  • Verify SMTP settings in .env.
  • Check identity-server logs.

Security Notes

  • Change default passwords in .env.
  • Use strong passwords for MinIO and API secret.
  • Keep your .env file secure.
  • Regularly update all services.
  • Enable HTTPS on your reverse proxy.
  • Consider implementing fail2ban.
  • Regularly monitor logs for suspicious activity.

Support

If you encounter issues:

5

Hello there.

I just wanted to share a recent discovery.

I was on the lookout for a self-hosted video hosting solution to host the tutorials I have and to share videos with family and work. I looked everywhere, and the only solution that suited me was MediaCMS. I'm exclusively using Docker for my self-hosted setup, and let me tell you that MediaCMS was a real pain in the ass to set up. Worse, it kept breaking over and over, and when you're just a beginner hobbyist like me, it was simply unsustainable. Don't get me wrong: MediaCMS is a great piece of software, but unless you run it barebones I guess, it is broken and desperately lacks support (at least for Docker).

So my journey continued, searxing, browsing awesome selfhosted, and trying every option I could get my hands on (honorable mention to Gerbera).

The other day, I was desperate and decided to ask Mistral what solutions it knew of. It was the only source that mentioned ClipBucket.

I tried it, encountered issues, posted them on GitHub, and two days later, their Dockerfile and setup instructions were updated. Communication was flawless, and the team is really great.

So please, give ClipBucket a try. Star them on GitHub, and show them some support. They deserve it!

https://github.com/MacWarrior/clipbucket-v5

1
submitted 6 months ago by Tiritibambix@lemmy.ml to c/datahoarder@lemmy.ml

Hi everyone!

I've been using Create-Synchronicity for a few years, and it's been great for my needs. However, it hasn't been updated in a while, and I'm curious if there might be a more current alternative out there.

I'm looking for features like mirror, incremental, and two-way incremental backups, as well as the ability to schedule my backups. Opensource is a great plus.

There are plenty of options available, so I thought it would be a good idea to ask you all what you're using and what you would recommend.

Thanks a bunch for your help!

18
submitted 8 months ago* (last edited 8 months ago) by Tiritibambix@lemmy.ml to c/opensource@lemmy.ml

Hi !

3 weeks ago, I dicovered glassdown here.

It is great and I added it to obtainium.

But it looks like the repo moved.

It originally could be found at https://github.com/Sinneida/glassdown

Now I can only find it at https://github.com/RomanK2311/glassdown but it has no releases.

Where is the official repo now ?

47
submitted 9 months ago* (last edited 9 months ago) by Tiritibambix@lemmy.ml to c/privacy@lemmy.ml

Hi there,

I'm currently going through some significant changes in my life. I'll be making a professional transition soon by leaving Paris for a more rural area, but I won't bore you with all the details.

My issue is that I really value my privacy and dislike big tech companies like gafam. To protect myself, I use Pihole and only allow an old phone to have access to meta products.

I recently caved in and reactivated my old Facebook and Instagram accounts to help with advertising, along with using a platform similar to Hootsuite to streamline things. When responding to private messages on Instagram, I use Aeroinsta to block ads and telemetry.

I'm managing okay so far, but I've seen the success some people have on TikTok and feel tempted to create an account. The thought of it turns my stomach, though.

If you're in a similar situation where online communication is vital, how do you navigate it? Have you found any alternative apps for TikTok like Aerosinsta ?

I'd really appreciate hearing from you and getting some insights. Thank you for your input.

11
submitted 11 months ago* (last edited 11 months ago) by Tiritibambix@lemmy.ml to c/selfhosted@lemmy.world

This is a followup to my previous post.

If you want to bind volumes outside of Docker, this is what you need to do.

There was a huge permission and volume mapping problem. I mention github issues that helped me here.

I hope that will help noobs and insecure people like me.


cd /srv/path/Files
git clone https://github.com/mediacms-io/mediacms
cd /srv/path/Files/mediacms
mkdir postgres_data \
&& chmod -R 755 postgres_data
nano docker-compose.yaml
version: "3"

services:
  redis:
    image: "redis:alpine"
    restart: always
    healthcheck:
      test: ["CMD", "redis-cli","ping"]
      interval: 30s
      timeout: 10s
      retries: 3

  migrations:
    image: mediacms/mediacms:latest
    volumes:
      - /srv/path/Files/mediacms/deploy:/home/mediacms.io/mediacms/deploy
      - /srv/path/Files/mediacms/logs:/home/mediacms.io/mediacms/logs
      - /srv/path/Files/mediacms/media_files:/home/mediacms.io/mediacms/media_files
      - /srv/path/Files/mediacms/cms/settings.py:/home/mediacms.io/mediacms/cms/settings.py
    environment:
      ENABLE_UWSGI: 'no'
      ENABLE_NGINX: 'no'
      ENABLE_CELERY_SHORT: 'no'
      ENABLE_CELERY_LONG: 'no'
      ENABLE_CELERY_BEAT: 'no'
      ADMIN_USER: 'admin'
      ADMIN_EMAIL: 'admin@localhost'
      ADMIN_PASSWORD: 'complicatedpassword'
    restart: on-failure
    depends_on:
      redis:
        condition: service_healthy
  web:
    image: mediacms/mediacms:latest
    deploy:
      replicas: 1
    ports:
      - "8870:80" #whatever:80
    volumes:
      - /srv/path/Files/mediacms/deploy:/home/mediacms.io/mediacms/deploy
      - /srv/path/Files/mediacms/logs:/home/mediacms.io/mediacms/logs
      - /srv/path/Files/mediacms/media_files:/home/mediacms.io/mediacms/media_files
      - /srv/path/Files/mediacms/cms/settings.py:/home/mediacms.io/mediacms/cms/settings.py
    environment:
#      ENABLE_UWSGI: 'no' #keep commented
      ENABLE_CELERY_BEAT: 'no'
      ENABLE_CELERY_SHORT: 'no'
      ENABLE_CELERY_LONG: 'no'
      ENABLE_MIGRATIONS: 'no'
      
  db:
    image: postgres:15.2-alpine
    volumes:
      - /srv/path/Files/mediacms/postgres_data:/var/lib/postgresql/data/
    restart: always
    environment:
      POSTGRES_USER: mediacms
      POSTGRES_PASSWORD: mediacms
      POSTGRES_DB: mediacms
      TZ: Europe/Paris
    healthcheck:
      test: ["CMD-SHELL", "pg_isready", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"]
      interval: 30s
      timeout: 10s
      retries: 5

  celery_beat:
    image: mediacms/mediacms:latest
    volumes:
      - /srv/path/Files/mediacms/deploy:/home/mediacms.io/mediacms/deploy
      - /srv/path/Files/mediacms/logs:/home/mediacms.io/mediacms/logs
      - /srv/path/Files/mediacms/media_files:/home/mediacms.io/mediacms/media_files
      - /srv/path/Files/mediacms/cms/settings.py:/home/mediacms.io/mediacms/cms/settings.py
    environment:
      ENABLE_UWSGI: 'no'
      ENABLE_NGINX: 'no'
      ENABLE_CELERY_SHORT: 'no'
      ENABLE_CELERY_LONG: 'no'
      ENABLE_MIGRATIONS: 'no'

  celery_worker:
    image: mediacms/mediacms:latest
    deploy:
      replicas: 1
    volumes:
      - /srv/path/Files/mediacms/deploy:/home/mediacms.io/mediacms/deploy
      - /srv/path/Files/mediacms/logs:/home/mediacms.io/mediacms/logs
      - /srv/path/Files/mediacms/media_files:/home/mediacms.io/mediacms/media_files
      - /srv/path/Files/mediacms/cms/settings.py:/home/mediacms.io/mediacms/cms/settings.py
    environment:
      ENABLE_UWSGI: 'no'
      ENABLE_NGINX: 'no'
      ENABLE_CELERY_BEAT: 'no'
      ENABLE_MIGRATIONS: 'no'
    depends_on:
      - migrations
docker-compose up -d

CSS will probably be missing because reasons, so bash into web container

docker exec -it mediacms_web_1 /bin/bash

Then

python manage.py collectstatic

No need to reboot

20
submitted 1 year ago* (last edited 1 year ago) by Tiritibambix@lemmy.ml to c/selfhosted@lemmy.world

Hey there!

I'm a self-hosting enthusiast, and I'm learning the hard way, so I appreciate your patience as I navigate through this.

I've been on the hunt for a video hosting solution that offers categories and tags, and I've heard great things about MediaCMS. It seems like the perfect fit for what I need.

After some trial and error, I finally got it up and running. The only hiccup I'm facing now is with logging into the admin panel. I keep getting an error 500. I checked out some similar issues on github, but it doesn't seem to apply to my situation, and there isn't a solution posted. Plus, it looks like the developer is not very active on the issues.

I was wondering if anyone else has encountered this problem before and might have some insights to share.

Here's some additional info: I cloned the repository from https://github.com/mediacms-io/mediacms and made some edits to the docker-compse.yaml file to suit my preferences, mainly adjusting the volume paths. You can check it out here. The service takes a bit of time to start, but eventually it does and I can access the landing page. However, when I try to sign in, I just get a "Server Error (500)" message. I've checked the logs but haven't found anything useful.

Has anyone who uses MediaCMS encountered this issue before? Can someone reproduce and help me clear this out? Thanks a lot for your assistance!

37

Hey there!

I find myself frequently downloading large files on my android phone from servers that aren't always the fastest. These downloads can range from audio and video files to zip and rar files.

I'm on the lookout for an app that will allow me to resume downloads that have failed, as well as choose where to save each file individually.

So far, I've only come across apps that have been discontinued.

Do you happen to know of any good, regularly updated apps that fit the bill?

Thanks so much for your help :)

24

Hey there!

So, I've accumulated a ton of courses and tutorials over the years - everything from photography to cooking to music mixing and mastering, DIY, gardening, you name it.

I've been trying to keep everything organized with Jellyfin, but honestly, it's a bit of a hassle to navigate through all my content and find what I need.

I'd love to find something with a user-friendly interface where I can easily sort, organize, and tag all my courses and videos.

I've been searching high and low for a solution these past few days, but haven't had much luck. Any suggestions?

Thanks in advance for your help!

[-] Tiritibambix@lemmy.ml 60 points 1 year ago* (last edited 1 year ago)

Jeez, why can't we have nice things ?!

What are the alternatives ? I'll be searching.

If you guys find something, please, report back.

Edit: For gallery, this looks promising: https://f-droid.org/packages/deckers.thibault.aves.libre/

The one and only up to date dialer app I could find. Updated 50 minutes ago at the time of posting this: https://github.com/oxcened/opendialer

[-] Tiritibambix@lemmy.ml 72 points 1 year ago

Fuck me. I switched to owncloud yesterday because I can't stand nextcloud anymore.

Owncloud feels lighter, faster, and just works.

Whhhhhhyyyyyy ?

[-] Tiritibambix@lemmy.ml 50 points 1 year ago

First, remember that you're not fighting this war alone. The most important part is educating people who are curious about it around you.

Second, it's not about winning; it's about being the biggest pain in the ass possible for people making money off our privacy.

Keep fighting in the way that suits you best.

[-] Tiritibambix@lemmy.ml 236 points 2 years ago

Create content and participate to make Lemmy more attractive.

[-] Tiritibambix@lemmy.ml 88 points 2 years ago* (last edited 2 years ago)

This is a freaking great guide. I wish I had this wonderful resource when I started selfhosting. Thanks for this.

People might also want to have a look at pihole as an alternative to adguard for add blocking. It is awesome.

I prefer homepage over heimdall. It is more configurable, but less noob friendly.

Jellyseer is a fork of overseer that integrates very well with jellyfin. Reiveer is promising for discovering and adding content.

[-] Tiritibambix@lemmy.ml 70 points 2 years ago

I do whatever the fuck I want, unless it is unpolite or could hurt somebody's freedom.

I learnt that, as I don't give a shit about what people are doing, they must also don't give a shit either. People just care about themselves most of the time. The day I realized that, I had a strong freedom feeling.

Having kids multiplied this attitude by 1000 and actually, I see people smiling and interacting with us while we're fooling around.

GO PLAY WITH FUCKING PUDDLES WEARING PINK PANTIES ON YOUR HEAD MY DUDE ! I might join you.

[-] Tiritibambix@lemmy.ml 51 points 2 years ago* (last edited 2 years ago)

I'm a sound engineer and I had awful neighbors. So I tried that to calm the monster of a kid my upstairs neighbors failed to raise.

I tried every pure frequencies from 12 000 kHz to 20 000 kHz with 1000 Hz steps at absurdly loud volumes.

The problem here was the air in our different apartments acting as an isolant, the material between our apartments, and the fact that this kid and his parents where deaf fucking morons.

In the end, the proper solution was to move. That worked as intended as I don't hear them anymore.

[-] Tiritibambix@lemmy.ml 48 points 2 years ago* (last edited 2 years ago)

Absurd. None of these communities are even hosted on lemmy.world.

lemmy.world has more downtime than France's administration anyway,. so at least we can still sail the high seas while they're down.

[-] Tiritibambix@lemmy.ml 250 points 2 years ago

For anyone interested in a quick look, this is what they found.

Awesome

[-] Tiritibambix@lemmy.ml 68 points 2 years ago* (last edited 2 years ago)

Open-source and unmoderated are 2 very different things.

Lemmy is open source so you got this already.

As for an instance without an admin, there can't be such a thing. An instance has to be hosted on some server and this server belongs to somebody that has to maintain it.

A community without a mod doesn't exist, as a community has to be founded by someone to exist.

Now, do you really want a community without an active mod ? Well if you want spam, bots and shitty content, sure.

If your problem is power tripping mods, just leave the communities with such mods.

Or you can run your own Lemmy instance and see how it goes.

[-] Tiritibambix@lemmy.ml 72 points 2 years ago

I know I'm cheap and I know this app is great and is a lot of work but fuck, this is expensive. Subscriptions are the worst model capitalism can offer. And the one time payment price is ridiculous, I can't afford that.

[-] Tiritibambix@lemmy.ml 65 points 2 years ago* (last edited 2 years ago)

No. !fucksubscriptions@lemmy.world !

I would gladly pay once though.

view more: next ›

Tiritibambix

joined 4 years ago