Let's say you want to host domains first.com and second.com.
Create folders for their files:
| from functools import singledispatch | |
| @singledispatch | |
| def process(model): | |
| """ | |
| Default processing definition | |
| """ | |
| raise NotImplementedError(f"I don't know how to process {type(model)}") | |
| @process.register |
| Создание пользователя | |
| --------------------- | |
| adduser username | |
| usermod -aG sudo username | |
| group username | |
| su username | |
| --------------------------------------- | |
| Компиляции python 3.6 | |
| ---------------------- | |
| sudo apt-get install -y make build-essential libssl-dev zlib1g-dev |
| # 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 |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| <!-- | |
| * GOOGLE MAP W/ MULTIPLE MARKERS AND OPTIONAL GEOCODING | |
| * by Boots (www.boots.media) | |
| * Working demo here: https://codepen.io/bootsified/details/XWbgwNr | |
| * | |
| * To use geocoding for locations, set `useGeocoding = true;` (limit 10 locations). | |
| * To manually place markers by lat/lng, set `useGeocoding = false;` (no limit). Locations array must contain lat/lng data. | |
| --> | |
| <script src="https://maps.googleapis.com/maps/api/js?key=[YOUR_APP_KEY_GOES_HERE]"></script> |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |