Skip to content

Instantly share code, notes, and snippets.

View Fudoshiki's full-sized avatar
🌐
Global

Yuri S. Fudoshiki

🌐
Global
View GitHub Profile
@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 / 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
# /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 / Flexible Dockerized Phoenix Deployments.md
Created February 13, 2022 00:56 — forked from jswny/Flexible Dockerized Phoenix Deployments.md
A guide to building and running zero-dependency Phoenix (Elixir) deployments with Docker. Works with Phoenix 1.2 and 1.3.

Prelude

I. Preface and Motivation

This guide was written because I don't particularly enjoy deploying Phoenix (or Elixir for that matter) applications. It's not easy. Primarily, I don't have a lot of money to spend on a nice, fancy VPS so compiling my Phoenix apps on my VPS often isn't an option. For that, we have Distillery releases. However, that requires me to either have a separate server for staging to use as a build server, or to keep a particular version of Erlang installed on my VPS, neither of which sound like great options to me and they all have the possibilities of version mismatches with ERTS. In addition to all this, theres a whole lot of configuration which needs to be done to setup a Phoenix app for deployment, and it's hard to remember.

For that reason, I wanted to use Docker so that all of my deployments would be automated and reproducable. In addition, Docker would allow me to have reproducable builds for my releases. I could build my releases on any machine that I wanted in a contai

@Fudoshiki
Fudoshiki / Dockerfile
Created July 15, 2021 20:25 — forked from nginx-gists/Dockerfile
Our Roadmap for QUIC and HTTP3 Support in NGINX
FROM nginx AS build
WORKDIR /src
RUN apt-get update && \
apt-get install -y git gcc make g++ cmake perl libunwind-dev golang && \
git clone https://boringssl.googlesource.com/boringssl && \
mkdir boringssl/build && \
cd boringssl/build && \
cmake .. && \
make
@Fudoshiki
Fudoshiki / questions.md
Last active November 29, 2020 16:50
Вопросы
  1. Поддержки. Может ли быть много поддержек в одном проекте?
  • Поддержать проект можно много раз, нужно обсуждение с дизайнером, как сделать кнопку Поддержать в тех проектах, в которых уже существует поддержка (в них сейчас нет кнопки Поддержать, показывается Моя поддержка, что не дает поддержать проект еще раз). (дополнительные изменения - для оценки)
  • Поддержки без вознаграждений исполняются сразу (списываются деньги) и кнопка Моя поддержка не показывается, снова предлагает Поддержать
  • Нужно обсудить с дизайнером отображение выбора параметров для множителя (x2) - как отображать выбор параметров для каждого вознаграждения. (дополнительные изменения - для оценки)
  1. Транзакции. Какие транзакции мы отображаем на странице кошелька, можно ли их смотреть детально?
  • Смотреть детально нельзя, отображаем только операции по кошельку
@Fudoshiki
Fudoshiki / erlang_webrtc_quic.rst
Created August 21, 2019 06:20 — forked from voluntas/erlang_webrtc_quic.rst
Erlang/OTP で WebRTC と QUIC

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from

@Fudoshiki
Fudoshiki / .gitignore
Created January 13, 2019 17:22
Elixir .gitignore
# The directory Mix will write compiled artifacts to.
/_build
# If you run "mix test --cover", coverage assets end up here.
/cover/
# The directory Mix downloads your dependencies sources to.
/deps/
# Where 3rd-party dependencies like ExDoc output generated docs.
@Fudoshiki
Fudoshiki / drain_stop.ex
Created December 13, 2018 04:57 — forked from chrismccord/drain_stop.ex
Phoenix Drain Stop
defmodule DrainStop do
@moduledoc """
DrainStop Attempts to gracefully shutdown an endpoint when a normal shutdown
occurs. It first shuts down the acceptor, ensuring that no new requests can be
made. It then waits for all pending requests to complete. If the timeout
expires before this happens, it stops waiting, allowing the supervision tree
to continue its shutdown order.
DrainStop should be installed in your supervision tree *after* the
EndPoint it is going to drain stop.