Skip to content

Instantly share code, notes, and snippets.

server {
listen 80 default_server;
index index.php index.html index.htm
server_name _;
location /csv {
alias /var/www/csv-importer/public/;
try_files $uri $uri/ @csv;
autoindex on;
sendfile off;
location ~ \.php$ {
@aman207
aman207 / #mealie ansible playbook
Last active February 4, 2022 17:31
playbook to create an instance of mealie without using docker
The files below are what I used to create an instance of mealie without having to use docker. It uses Ubuntu 20.04 as the OS.
Don't expect the ansible playbook to work via copy and paste, you'll need to edit it according to your setup.
This is just an example of the steps required.
@aman207
aman207 / 1. change-detection.yml
Created July 29, 2022 00:18
#change-detection ansible playbook
---
- hosts: all
remote_user: onionadmin
become: true
gather_facts: no
tasks:
- name: install nodejs LTS (v16) repo
shell:
cmd: 'curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -'
@aman207
aman207 / 1. mealie-next.yml
Last active August 1, 2022 17:30
mealie-next ansible playbook
---
- hosts: all
remote_user: onionadmin
become: true
gather_facts: no
tasks:
- name: install nodejs LTS (v16) repo
shell:
cmd: 'curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -'
@aman207
aman207 / certificate-update.py
Created August 21, 2023 13:32
Fortigate wildcard certificate update
from fortigate_api import Fortigate
import base64
from datetime import datetime
import inotify.adapters
import inotify.constants
import requests
#Wildcard cert file location
CERT_FILE = ""
#Key file location