Commit 79af49f5 authored by Nelso Jost's avatar Nelso Jost

NEW: basic root site setup

parents
SITEFILE = dadoscta
all:
@ echo "$$HELP"
install:
@ echo "$$DADOSCTA_ROOT_LOCATION" > /etc/nginx/conf.d/${SITEFILE}-root
@ echo "$$DADOSCTA_SERVER" > /etc/nginx/sites-available/${SITEFILE}
ln -sf /etc/nginx/sites-available/${SITEFILE} \
/etc/nginx/sites-enabled/${SITEFILE}
nginx -s reload
uninstall:
rm -f /etc/nginx/conf.d/${SITEFILE}-root
nginx -s reload
define DADOSCTA_SERVER
server {
listen 80;
# listen [::]:80;
server_name dados.cta.if.ufrgs.br;
include /etc/nginx/conf.d/dadoscta-*;
}
endef
export DADOSCTA_SERVER
define DADOSCTA_ROOT_LOCATION
location / {
alias /var/www/site-dadoscta/;
}
endef
export DADOSCTA_ROOT_LOCATION
define HELP
Usage: make <target> where target can be
install copy files to nginx config directory
uninstall delete files from config directory
endef
export HELP
<!DOCTYPE html>
<html>
<head>
<meta charset="latin1">
<style type="text/css">
.main {
text-align: center;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
}
</style>
</head>
<body>
<div class="main">
<a href="http://cta.if.ufrgs.br">
<img src="images/logo-cta.png"></img>
</a>
</div>
<h1>Bem-vindo ao servidor de dados abertos do <a href="http://cta.if.ufrgs.br">Centro de Tecnologia Acadmica</a></h1>
<hr>
<h2><a href="http://dados.cta.if.ufrgs.br/emm">Projeto EMM</a> (Estaes Meteorolgicas Modulares)</h2>
<footer class="footer">
Powered by <a href="http://nginx.org" target="_blank">Nginx</a>
</footer>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment