- sudo apt-get update
- sudo apt-get install nginx
- sudo pip install uwsgi
- sudo mkdir /etc/uwsgi
- sudo mkdir /etc/uwsgi/vassals
- edit /etc/nginx/sites-available/default
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
--you must first name your local image using your Docker Hub username and the repository name that you created through Docker Hub on the web. You can add multiple images to a repository by adding a specific :<tag> | |
docker tag qgis-server:latest avssilva/myrepo:qgis-server | |
docker login | |
docker push avssilva/myrepo:qgis-server | |
docker pull avssilva/myrepo:qgis-server | |
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
import os | |
import base64 | |
import cryptography | |
from cryptography.fernet import Fernet, InvalidToken | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import hashes | |
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC | |
def generate_key(): | |
password_provided = input("password:") |