mim

joined 1 year ago
[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

I don't self-host a lot of things, but I'd say this is not the easiest I've done, just because it involves setting up multiple containers (unlike something like SearXNG). Also thought that I had to set-up an SMTP container, but I got away with not having to do it.

I used ansible (and pass to store credentials), so this is how I did it (maybe someone can pitch in and tell me what I can improve):

- name: Deploy Wallabag database
  community.docker.docker_container:
    name: db_wallabag
    image: mariadb
    recreate: true
    state: started
    memory: 500MB
    restart_policy: always
    log_options:
      max-size: "10m"
      max-file: "1"
    env:
      MYSQL_ROOT_PASSWORD: "{{ lookup('community.general.passwordstore', 'self_host_containers/wallabag_mysql_root_password', missing='warn') }}"
    volumes:
    - ~/wallabag/data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
      interval: 20s
      timeout: 3s

- name: Deploy Wallabag redis
  community.docker.docker_container:
    name: redis_wallabag
    image: redis:alpine
    recreate: true
    state: started
    memory: 500MB
    restart_policy: always
    log_options:
      max-size: "10m"
      max-file: "1"
    links:
    - "db_wallabag:db_wallabag"
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 20s
      timeout: 3s

- name: Deploy Wallabag
  community.docker.docker_container:
    image: wallabag/wallabag:latest
    name: wallabag
    recreate: true
    state: started
    memory: 500MB
    restart_policy: always
    log_options:
      max-size: "10m"
      max-file: "1"
    links:
    - "redis_wallabag:redis_wallabag"
    - "db_wallabag:db_wallabag"
    ports:
    - "80"
    env:
      MYSQL_ROOT_PASSWORD: "{{ lookup('community.general.passwordstore', 'self_host_containers/wallabag_mysql_root_password', missing='warn') }}"
      SYMFONY__ENV__DATABASE_DRIVER: pdo_mysql
      SYMFONY__ENV__DATABASE_HOST: db_wallabag
      SYMFONY__ENV__DATABASE_PORT: "3306"
      SYMFONY__ENV__DATABASE_NAME: db_wallabag
      SYMFONY__ENV__DATABASE_USER: db_wallabag
      SYMFONY__ENV__DATABASE_PASSWORD: "{{ lookup('community.general.passwordstore', 'self_host_containers/wallabag_symfony_env_database_password', missing='warn') }}"
      SYMFONY__ENV__DATABASE_CHARSET: utf8mb4
      SYMFONY__ENV__DATABASE_TABLE_PREFIX: "wallabag_"
      SYMFONY__ENV__MAILER_DSN: smtp://127.0.0.1
      SYMFONY__ENV__FROM_EMAIL: [email protected]
      SYMFONY__ENV__DOMAIN_NAME: 
      SYMFONY__ENV__SERVER_NAME: 
    volumes:
    - ~/wallabag/images:/var/www/wallabag/web/assets/images
    - ~/wallabag/data:/var/www/wallabag/data
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost"]
      interval: 1m
      timeout: 3s


Then I set up caddy for the reverse proxy

- name: Upload Caddyfile
  ansible.builtin.copy:
    src: ./upload_files/Caddyfile
    dest: ~/Caddyfile

- name: Deploy caddy
  community.docker.docker_container:
    image: caddy:2
    name: caddy
    user: "1000:1000"
    recreate: true
    state: started
    memory: 500MB
    restart_policy: always
    log_options:
      max-size: "10m"
      max-file: "1"
    links:
    - "wallabag:wallabag"
    ports:
    - "80:80"
    - "443:443"
    volumes:
    - ~/Caddyfile:/etc/caddy/Caddyfile
    - ~/caddy_data:/data
    - ~/caddy_config:/config

And this is the Caddyfile

my.url.com {
    reverse_proxy wallabag:80
}

Finally, you then have to login with user:wallabag and password:wallabag and change them in the webUI. I changed the "wallabag" user to my user and set a new password.

[–] [email protected] 3 points 10 months ago

You're welcome!

[–] [email protected] 21 points 10 months ago* (last edited 10 months ago) (4 children)

Wallabag.

I self-host my own instace, save articles I want to read from my laptop, and then they sync with the app on my phone. I read them offline when I have some time to kill

[–] [email protected] 4 points 10 months ago

If you don't mind selfhosting, miniflux is pretty nice.

Really lightweight, downloads the full text if possible (instead of just the first paragraph), etc.

[–] [email protected] 16 points 10 months ago* (last edited 10 months ago)

Because one can be pinned down to government involvement, while the other can't.

It's the classic CCP defense: "We're not an authoritarian country, you're just racist!".

EDIT: not saying that it was or wasn't a lab leak, but as soon as the government shoots down the possibility with "you're racist", I immediately get suspicious. The same way that I get suspicious when Israel shoots down criticism with "you're just anti-Semitic". It's basically gaslighting with identity politics.

[–] [email protected] 6 points 10 months ago (1 children)

Americans keep culturally appropriating Italy, first pizza and now fascism. smh

[–] [email protected] 46 points 10 months ago* (last edited 10 months ago)

Ah yes, right wing nationalism is a problem exclusively in Ukraine. Russia invading a neighbour has nothing to do with Russification.

www.foreignaffairs.com/russian-federation/return-russian-ethnonationalism

[–] [email protected] 39 points 10 months ago* (last edited 10 months ago) (4 children)

You're also an American tankie who seems to have a knewjerk reaction of blaming everything on a group of Ukrainian white nationalists.

Italians are perfectly capable of having their own home-grown right wing clowns. They invented fascism after all.

[–] [email protected] 6 points 10 months ago (1 children)

You're replying to a tankie.

Just the usual knewjerk reaction to defend China.

[–] [email protected] 0 points 10 months ago* (last edited 10 months ago) (2 children)

Don't change the subject with whatabouttisms tankie.

I can play that game too: Russia held elections at gunpoint in occupied territory. Do you also believe that the elections the US held in Afghanistan and Iraq were free? Or does that only apply to countries that you don't like?

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago) (1 children)

It’s about how a nato official blurted something out

He wanted them to consider it, otherwise he wouldn't have said it. This is not some guy in the pub having a chat with his friends and he "blurted it out" over some beers. These are bureaucrats with highly controlled chains of command.

emediatly had to apologize

He did that after the Ukrainian backlash.

I'm not going to debate who's wining, since you're going to pull out some RT stats. What I'm arguing is the point tankies keep pushing that NATO is somehow pushing Ukrainians into a war against their will, and that NATO is not open to a negotiation to end the war.

You had literally a NATO official suggesting Ukraine to give up territory to stop the war. Ukrainians getting outraged, and him having to backpedal.

[–] [email protected] 1 points 10 months ago (3 children)

Read the article mate.

NATO literally proposed to Ukraine to give up territory to stop the war. Answer this, and don't dodge the question: Why would NATO ever put forth that proposition if they wanted the war to keep going?

228
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

I am currently self-hosting a meta search engine instance (searxng), which allows me combine searches from different engines (e.g. Google, Bing, Yahoo, etc), but also to filter out websites that I don't want to show up.

The only website to make my blacklist so far is slant.co (useless SEO-riddled site that always comes up when I search for software comparisons). I also automatically redirect all reddit.com links to old.reddit.com.

I'm looking to expand this list. So, which websites do you blacklist? Either using software, or just mentally.

view more: next ›