This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"fade_fold_buttons": false, | |
"font_size": 11, | |
"gutter": true, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# renew cert | |
python /ssl/acme_tiny.py --account-key /ssl/account.key --csr /ssl/domain.csr --acme-dir /var/www/challenges/ > /ssl/signed.crt | |
# update chained.pem | |
cat /ssl/signed.crt /ssl/intermediate.pem > /ssl/chained.pem | |
# update dovecot keys | |
cp /ssl/chained.pem /etc/dovecot/dovecot.pem | |
cp /ssl/domain.key /etc/dovecot/private/dovecot.pem | |
# reload services | |
service nginx reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^(.*) /app/index.html [NC,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alias /app /path/to/angular/build/dir | |
<Directory /path/to/angular/build/dir > | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /a/index.html [L] | |
AllowOverride All | |
# Order allow,deny |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List, Optional | |
import logging | |
import requests | |
class ApisNetPe: | |
BASE_URL = "https://api.apis.net.pe" |