Cleanup
This commit is contained in:
parent
2988b5f18a
commit
12d6e3824c
9 changed files with 12 additions and 93 deletions
4
.envrc
4
.envrc
|
@ -1 +1,3 @@
|
||||||
source .virtualenv/bin/activate
|
#!/bin/bash
|
||||||
|
|
||||||
|
source .venv/bin/activate
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
||||||
# python
|
# python
|
||||||
__pycache__
|
__pycache__
|
||||||
.virtualenv
|
.venv
|
||||||
|
|
||||||
# node/bower
|
# node/bower
|
||||||
node_modules
|
node_modules
|
||||||
|
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"python.pythonPath": ".virtualenv/bin/python3"
|
"python.pythonPath": ".venv/bin/python3"
|
||||||
}
|
}
|
2
Makefile
2
Makefile
|
@ -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:
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
fmartingr.com
|
||||||
|
=============
|
||||||
|
|
||||||
|
Source code for my personal site hosted at [fmartingr.com](https://fmartingr.com)
|
|
@ -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
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
|
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue