This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name _; | |
root /usr/share/nginx/html; | |
sendfile on; | |
sendfile_max_chunk 1m; | |
keepalive_timeout 60; | |
location = /healthz { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Declare a cache named static-cache | |
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=static-cache:2m max_size=100m inactive=7d use_temp_path=off; | |
proxy_cache_key $scheme$proxy_host$request_uri; | |
proxy_cache_lock on; | |
proxy_cache_use_stale updating; | |
server { | |
listen 80; | |
server_name _; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class C { | |
public Int32 First(string Command, Int32 A, Int32 B) { | |
switch(Command) { | |
case "Add": | |
return A + B; | |
case "Substract": | |
return A - B; | |