Skip to content

Instantly share code, notes, and snippets.

@EzequielBruni
EzequielBruni / nginx-and-typemill.md
Last active December 11, 2023 02:56
Nginx configuration for Typemill

How to configure Nginx for Typemill

Prequisites

  • Nginx installed.
  • PHP-FPM installed, and set to run with the same user name and group as your Nginx server.
  • The PHP modules listed below:
    • Depending on your Linux distro, some of these modules may be included by default.
    • Some of these modules may be named differently. On Alpine Linux, for example, every "php-" should actually be "php8-" (or whatever PHP version you want), and modules like "php-xmlrpc" will have longer names like "php8-pecl-xmlrpc". CHeck your distro's documentation and package lists to be sure.
@EzequielBruni
EzequielBruni / rocky-install-micro.sh
Created February 1, 2022 01:25
A simple script to install the Micro text editor on Rocky Linux, without snap.
#!/bin/bash
# Make sure tar is installed (it's not in some container images).
sudo dnf install tar -y
# Install micro
curl https://getmic.ro | bash
# Move micro from the current directory to /usr/bin for a proper system-wide installation.
sudo mv micro /usr/bin/