This commit is contained in:
Felipe M 2019-10-07 18:15:44 +02:00
parent 2988b5f18a
commit 12d6e3824c
Signed by: fmartingr
GPG key ID: 716BC147715E716F
9 changed files with 12 additions and 93 deletions

4
.envrc
View file

@ -1 +1,3 @@
source .virtualenv/bin/activate #!/bin/bash
source .venv/bin/activate

2
.gitignore vendored
View file

@ -1,6 +1,6 @@
# python # python
__pycache__ __pycache__
.virtualenv .venv
# node/bower # node/bower
node_modules node_modules

View file

@ -1,3 +1,3 @@
{ {
"python.pythonPath": ".virtualenv/bin/python3" "python.pythonPath": ".venv/bin/python3"
} }

View file

@ -1,4 +1,6 @@
setup: setup:
python3 -m venv .venv
source .venv/bin/activate && pip install -r requirements.txt
npm install npm install
dev: dev:

View file

@ -0,0 +1,4 @@
fmartingr.com
=============
Source code for my personal site hosted at [fmartingr.com](https://fmartingr.com)

View file

@ -1,20 +0,0 @@
#!/bin/bash
# Emacs install script used into scaleway.c1 servers due to ARM arch
EMACS_VERSION="25.1"
# Asume root
cd
# Install dependencies
yum install -y ncurses.devel
# Download package
curl -O http://ftp.rediris.es/mirror/GNU/gnu/emacs/emacs-$EMACS_VERSION.tar.xz
# Configure, Make, and Install
./configure
make
make install

View file

@ -1,21 +0,0 @@
server {
listen *:80;
server_name www.fmartingr.com;
return 301 http://fmartingr.com$request_uri;
}
server {
listen *:80;
server_name fmartingr.com;
server_tokens off;
client_max_body_size 1M;
access_log /var/log/fmartingr.com/nginx-access.log;
error_log /var/log/fmartingr.com/nginx-error.log;
location / {
alias /var/www/fmartingr.com/html/;
autoindex off;
}
}

View file

@ -1,15 +0,0 @@
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target

View file

@ -1,33 +0,0 @@
#!/bin/bash
# Nginx install script used into scaleway.c1 servers dure to ARM architecture
NGINX_VERSION="1.11.7"
# As root
cd
# Install nginx requirements
yum install -y pcre-devel zlib-devel
# Download nginx package
curl -O http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz
tar xf nginx-$NGINX_VERSION.tar.gz
cd nginx-$NGINX_VERSION
# Configure, make and Install
./configure
make
make install
# Symlink binary
ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
# Now create the service file as in the template in
# /etc/systemd/system/nginx.service
# Uncomment the pid directive from the nginx conf and change its value to
# /run/nginx.pid
# add rule to iptables
# -A IN_public_allow -p tcp -m tcp --dport 80 -m conntrack --ctstate NEW -j ACCEPT