Skip to content

Instantly share code, notes, and snippets.

Более удобной и актуальной версией является эта статья с использованием traefik

https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52


Certbot и nginx, как обратный прокси в Docker (пример с 2 react проектами)

В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам

task :up do
update_items = [
[ "src", "fl", "engine/src/fl" ],
[ "tools", "FlashExporter*.air", "exporter/distrib/*.air" ],
[ "html/js", "pixi", "engine/html/js/pixi" ],
[ "typings", "pixi.js", "engine/typings/pixi.js" ],
]
src_list = [
"../flashtml",
'use strict';
const tagpanda = {};
tagpanda.fullscreen = {
d: document,
__availableFullscreen__: null,
@kolodiazhnyi
kolodiazhnyi / Devise.uk.yml
Created December 20, 2011 19:04
Ukrainian translation for Devise plugin
uk:
errors:
messages:
expired: "прострочено, створіть новий"
not_found: "не знайдено"
already_confirmed: "вже було підтверджено, спробуйте увійти"
not_locked: "не було заблоковано"
not_saved:
one: "Виникла помилка, через яку неможливо зберегти зміни:"
other: "Виникли помилки (загалом - %{count}), через які неможливо зберегти зміни:"
@runemadsen
runemadsen / description.markdown
Created September 26, 2011 15:23
Reverse polymorphic associations in Rails

Polymorphic Associations reversed

It's pretty easy to do polymorphic associations in Rails: A Picture can belong to either a BlogPost or an Article. But what if you need the relationship the other way around? A Picture, a Text and a Video can belong to an Article, and that article can find all media by calling @article.media

This example shows how to create an ArticleElement join model that handles the polymorphic relationship. To add fields that are common to all polymorphic models, add fields to the join model.