respaldo configuraciones servidor

This commit is contained in:
kleper 2019-10-17 18:46:53 -05:00
parent 8269766acf
commit d7deac3bd0
19 changed files with 515 additions and 0 deletions

10
mapproxy/config.py Normal file
View File

@ -0,0 +1,10 @@
# WSGI module for use with Apache mod_wsgi or gunicorn
# # uncomment the following lines for logging
# # create a log.ini with `mapproxy-util create -t log-ini`
# from logging.config import fileConfig
# import os.path
# fileConfig(r'/srv/mapproxy/log.ini', {'here': os.path.dirname(__file__)})
from mapproxy.wsgiapp import make_wsgi_app
application = make_wsgi_app(r'/srv/mapproxy/mapproxy-osm.yaml')

15
mapproxy/mapas.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Servicio de Mapas
After=syslog.target
[Service]
ExecStart=/usr/local/bin/uwsgi --http :8080 --wsgi-file /srv/mapproxy/config.py
RuntimeDirectory=uwsgi
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,49 @@
services:
#sets up how to make the source data available
demo:
tms:
wmts:
wms:
srs: ['CRS:84', 'EPSG:4326', 'EPSG:3857']
layers:
#sets up which layers you want to make available using the services above. You can add many, but let's stick to osm data here.
- name: osm
title: Open Streetmap Tiles
sources: [osm_cache] #this layer should use the osm_cache (defined below) as it's source.
caches:
#setup the cache for the open streetmap tiles. This cache is used by the layer above.
osm_cache:
grids: [GLOBAL_WEBMERCATOR]
bulk_meta_tiles: true
sources: [osm_tiles]
cache:
type: sqlite
directory: osmcache
sources:
osm_tiles:
#the osm_tiles source refers to the openstreetmap.org tiles. These will be downloaded upon request (if not already cached) and served by MapProxy
type: tile
url: http://c.tile.openstreetmap.org/%(tms_path)s.%(format)s
grid: osm_grid #the grid to use for the osm tiles. This is really important. It is specified below.
grids:
osm_grid:
base: GLOBAL_WEBMERCATOR
srs: EPSG:3857
origin: nw
globals:
#next are some global configuration options for MapProxy. They mostly explain themselves, or can be looked-up in the MapProxy docs.
cache:
# where to store the cached images
base_dir: '/opt/mapproxy/cache_data'
# where to store lockfiles
lock_dir: '/opt/mapproxy/cache_data'
# image/transformation options
image:
resampling_method: bilinear
jpeg_quality: 90

15
mapproxy/seed.yaml Normal file
View File

@ -0,0 +1,15 @@
seeds:
colombia:
caches: [osm_cache]
coverages: [colombia]
levels:
to: 19
# refresh_before:
# re-generate tiles older than this date
# time: 2021-10-10T12:35:00
coverages:
colombia:
# simple bbox
bbox: [-77.47, 7.85, -76.58, 8.68]
srs: "EPSG:4326"

View File

@ -0,0 +1,34 @@
-----BEGIN CERTIFICATE-----
MIIF6TCCA9GgAwIBAgIQBeTcO5Q4qzuFl8umoZhQ4zANBgkqhkiG9w0BAQwFADCB
iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV
BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQw
OTEyMDAwMDAwWhcNMjQwOTExMjM1OTU5WjBfMQswCQYDVQQGEwJGUjEOMAwGA1UE
CBMFUGFyaXMxDjAMBgNVBAcTBVBhcmlzMQ4wDAYDVQQKEwVHYW5kaTEgMB4GA1UE
AxMXR2FuZGkgU3RhbmRhcmQgU1NMIENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQCUBC2meZV0/9UAPPWu2JSxKXzAjwsLibmCg5duNyj1ohrP0pIL
m6jTh5RzhBCf3DXLwi2SrCG5yzv8QMHBgyHwv/j2nPqcghDA0I5O5Q1MsJFckLSk
QFEW2uSEEi0FXKEfFxkkUap66uEHG4aNAXLy59SDIzme4OFMH2sio7QQZrDtgpbX
bmq08j+1QvzdirWrui0dOnWbMdw+naxb00ENbLAb9Tr1eeohovj0M1JLJC0epJmx
bUi8uBL+cnB89/sCdfSN3tbawKAyGlLfOGsuRTg/PwSWAP2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GtjSaD2nDbAcx
4o2Eo2AiQc00sw1KnkyIu+g9OfNTjutpWsrcWhblZ/SNfGDuXCDaUm5v
-----END CERTIFICATE REQUEST-----

View File

@ -0,0 +1,15 @@
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 85
<IfModule ssl_module>
Listen 8443
</IfModule>
<IfModule mod_gnutls.c>
Listen 8443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View File

@ -0,0 +1,24 @@
<VirtualHost *:85>
ServerName darien.nuestrared.org
ServerAdmin info@tupale.co
DocumentRoot /var/www/html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^darien\.nuestrared.org [NC,OR]
RewriteRule ^/$ /e1 [R]
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html/>
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

View File

@ -0,0 +1,44 @@
<IfModule mod_ssl.c>
<VirtualHost *:8443>
ServerName darien.nuestrared.org
ServerAdmin info@tupale.co
DocumentRoot /var/www/html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^darien\.nuestrared.org [NC,OR]
RewriteRule ^/$ /e1 [R]
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html/>
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
SSLCertificateFile /etc/letsencrypt/darien.crt
SSLCertificateKeyFile /etc/letsencrypt/myserver.key
Include /etc/letsencrypt/options-ssl-apache.conf
#
ErrorDocument 404 /404.php
<Files "404.php">
<If "-z %{ENV:REDIRECT_STATUS}">
RedirectMatch 404 ^/404.php$
</If>
</Files>
</VirtualHost>
</IfModule>

View File

@ -0,0 +1 @@
../sites-available/000-default.conf

View File

@ -0,0 +1 @@
../sites-available/default-ssl.conf

65
webserver/nginx.conf Normal file
View File

@ -0,0 +1,65 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

12
webserver/proxy.conf Normal file
View File

@ -0,0 +1,12 @@
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#client_max_body_size 10m;
#client_body_buffer_size 128k;
proxy_connect_timeout 600s;
proxy_send_timeout 600;
proxy_read_timeout 600s;
send_timeout 600;
#proxy_buffers 32 4k;

View File

@ -0,0 +1,47 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.php;
add_header Access-Control-Allow-Origin "*";
server_name reddarien.nuestrared.org dariencaribe.org dariencaribe.nuestrared.org www.dariencaribe.org darien.info www.darien.info darien.nuestrared.org;
return 301 https://$host$request_uri;
location /mapproxy {
proxy_pass http://localhost:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Script-Name /mapproxy;
}
location / {
proxy_pass https://10.10.4.2:8443/;
include /etc/nginx/proxy.conf;
}
location @rewrite {
# Some modules enforce no slash (/) at the end of the URL
# Else this rewrite block wouldn&#39;t be needed (GlobalRedirect)
rewrite ^/(.*)$ /index.php?variable=$1;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#try_files $uri =404;
#fastcgi_param REMOTE_ADDR $http_x_real_ip;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9002;
#fastcgi_index index.php;
#include fastcgi_params;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.ht {
deny all;
}
}

View File

@ -0,0 +1,51 @@
#Este archivo de configuración hace que los celulares que se conecten a la red encuentren el portal captivo y crean que estan conectados a Internet
server {
listen 80;
server_name
clients3.google.com
clients.l.google.com
connectivitycheck.android.com
connectivitycheck.gstatic.com
play.googleapis.com
;
root /var/www/captive;
index index.html index.htm index.nginx-debian.html;
location /generate_204 {
return 204;
return 302 http://infolocal.nuestrared.org;
}
location / {
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;
}
location ~ /\.ht {
deny all;
}
}
server {
server_name
apple.com
captive.apple.com;
listen 80;
root /var/www/captive;
location / {
try_files /index.html /index.html;
}
}

View File

@ -0,0 +1 @@
/etc/nginx/sites-available/default

View File

@ -0,0 +1,53 @@
server {
listen 443 default_server;
listen [::]:443 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.php;
add_header Access-Control-Allow-Origin "*";
server_name reddarien.nuestrared.org dariencaribe.org dariencaribe.nuestrared.org www.dariencaribe.org darien.info www.darien.info darien.nuestrared.org;
ssl on;
ssl_certificate /etc/letsencrypt/darien.crt; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/myserver.key; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location /mapproxy {
proxy_pass http://localhost:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Script-Name /mapproxy;
}
location / {
proxy_pass https://10.10.4.2:8443/;
include /etc/nginx/proxy.conf;
}
location @rewrite {
# Some modules enforce no slash (/) at the end of the URL
# Else this rewrite block wouldn&#39;t be needed (GlobalRedirect)
rewrite ^/(.*)$ /index.php?variable=$1;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#try_files $uri =404;
#fastcgi_param REMOTE_ADDR $http_x_real_ip;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9002;
#fastcgi_index index.php;
#include fastcgi_params;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.ht {
deny all;
}
}