Code Monkey home page Code Monkey logo

c's Introduction

Casino & API Setup Method of Demo

NGINX Proxy Pass

Below you can find nginx proxy blocks, used in reverse proxy. In case of the PPgames this is required to function, it's is adviseable to set this up on a proper server and with CLOUDFLARE. To break cache, google for cache busting setup/config - this may be needed if games would suddenly change (unlikely). Does not affect possible outcome/manipulation in any case.

This does make sure that all games are updated accordingly and totally automatic, without hosting a single frontend/static file in your own server.

	location /static_pragmatic/ {
	    add_header 'Access-Control-Allow-Origin' '*' always;
		add_header	'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, HEAD' always;
		add_header 'Access-Control-Allow-Credentials' 'true' always;
		add_header 'Access-Control-Allow-Headers' 'Accept,Accept-Encoding,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With' always;
	    add_header Cache-Control "public";
	    proxy_pass http://demogamesfree.pragmaticplay.net/gs2c/common/games-html5/games/vs/;
	    proxy_http_version 1.1;
	    proxy_set_header Upgrade $http_upgrade;
	    proxy_set_header Connection "upgrade";
	    gzip_static on;
	    access_log off;
	    expires 1y;
	}

	# assets, media
	location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|svg|jpeg|gif|webp)$ {
	    etag off;
	    expires 1M;
	    access_log off;
	    add_header Cache-Control "public";
	    try_files $uri $1.$2;
	}

	# svg, fonts
	location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$     {
		add_header Access-Control-Allow-Origin "*";
		expires 1y;
		access_log off;
	}

	location ~ /\.(?!well-known).* {
	    deny all;
	}

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

c's People

Contributors

mm00nglo avatar westreels avatar ryandro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.