Skip to content

Instantly share code, notes, and snippets.

View Fudoshiki's full-sized avatar
🏠
Working from home

Yuri S. Fudoshiki

🏠
Working from home
View GitHub Profile
# /etc/nginx/sites-available/default
# Phoenix LiveView Nginx configuration - Reverse proxy to Phoenix app running on localhost
# All lines with # managed by certbot are placed automatically by [certbot](https://certbot.eff.org)
# Replace $YOUR_SITE_NAME with your url host unless line is followed with # managed by Certbot
# Default server configuration
#
server {
listen [::]:443 ssl ipv6only=on; # managed by Certbot
@Fudoshiki
Fudoshiki / nginx.conf
Created September 2, 2024 05:04 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration
@Fudoshiki
Fudoshiki / about.md
Created September 9, 2024 08:02 — forked from icedterminal/about.md
Jellyfin + NGINX

Jellyfin + NGINX

Reference configuration files for using Jellyfin with NGINX.

https://docs.icedterminal.com/en/linux/jellyfin

  • Last updated: 2nd January, 2024
  • Supports NGINX mainline releases with OpenSSL 3+. The minimum required verison is 1.25.1.

Notes

The config files are used with my own custom build of NGINX. Things you will not have access to with a vanilla build (mainline) are commented out. This being Brotli and HTTP3. I have left these in if you want to use a custom build.

@Fudoshiki
Fudoshiki / helpers.ex
Last active December 20, 2024 13:19
recompile exception
defmodule PhoenixAssetPipeline.Helpers do
@moduledoc false
import PhoenixAssetPipeline.Obfuscator
defmacro __before_compile__(env) do
classes = Module.get_attribute(env.module, :__classes__, [])
recompile? = Enum.any?(classes, &match?({:error, _}, &1))
quote do
def __mix_recompile__?, do: unquote(recompile?)