Print all metadata available when doing an HTTP request
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.5 KiB

4 months ago
# Meta
*Meta* is a small Nginx/PHP tool displaying some informations in order to debug or satisfy your curiosity.
## Use
### Paths
4 months ago
* `/me` will redirect to `/<your-ip-address>`
* `/<any-ip-address>` will print informations obtained from databases located in the `geolite2` directory
* `/emoji` will print an emoji list
* `/<anything-else>` will print *IP*, *TCP*, *TLS* and *HTTP* metadata
4 months ago
### Domains
4 months ago
* `` have working A (IPv4) and AAAA (IPv6) records
4 months ago
You can test IP version connectivity by forcing it throught
* `` only have the A record
* `` only have the AAAA record
## Nginx configuration
4 months ago
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
4 months ago
server_name *;
root /var/www/meta;
index index.php;
try_files $uri/ /;
more_set_headers "Content-Security-Policy : default-src 'none'; frame-ancestors 'none'; form-action 'none';";
more_set_headers "X-Content-Type-Options : nosniff";
more_set_headers "X-XSS-Protection : 1; mode=block";
more_set_headers "X-Download-Options : noopen";
more_set_headers "X-Permitted-Cross-Domain-Policies : none";
more_set_headers "X-Frame-Options : DENY";
more_set_headers "Referrer-Policy : no-referrer";
more_set_headers "Strict-Transport-Security : max-age=94608000; includeSubDomains; preload";
more_clear_headers Server;
ssl_prefer_server_ciphers off;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_early_data off;
ssl_stapling on;
ssl_stapling_verify on;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519:X448;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
error_log /var/log/nginx/ info;
access_log off;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/meta.sock;
include inc/fastcgi.conf;
fastcgi_param SSL_CURVES $ssl_curves;
fastcgi_param SSL_CIPHERS $ssl_ciphers;
fastcgi_param SSL_CIPHER $ssl_cipher;
fastcgi_param SSL_PROTOCOL $ssl_protocol;
fastcgi_param SSL_SESSION_ID $ssl_session_id;
fastcgi_param NGINX_VERSION $nginx_version;
fastcgi_param TCPINFO_RTT $tcpinfo_rtt;
fastcgi_param TCPINFO_RTTVAR $tcpinfo_rttvar;
fastcgi_param TCPINFO_SND_CWND $tcpinfo_snd_cwnd;
fastcgi_param TCPINFO_RCV_SPACE $tcpinfo_rcv_space;
fastcgi_param CONNECTION $connection;
fastcgi_param CONNECTION_REQUESTS $connection_requests;
fastcgi_param REQUEST $request;
location ~ emojis.txt {
charset utf-8;
## Ressources
Nginx variable list: <>
PHP $_SERVER list: <>
### HTTP headers
4 months ago
4 months ago
## Free software
*Meta* is published under **AGPLv3+** (see `LICENSE`), it's source code is available at <>. `db-reader` and `geolite2` directories contents have their own license.