##ss加密算法
常用算法aes-256-cfb速度较慢,在路由器等arm平台表现不佳。
用于arm平台时,采用算法rc4-md5即可。
"method":"rc4-md5"
为加速加密速度,安装m2crypto
yum install m2crypto| using System.Runtime.InteropServices; | |
| using System.IO; | |
| namespace foo | |
| { | |
| class bar | |
| { | |
| [DllImport("kernel32.dll", SetLastError = true)] | |
| public static extern bool SetConsoleOutputCP(int newcp); | |
| static void Main(string[] args) |
| #!/bin/bash | |
| #=============================================================================================== | |
| # System Required: CentOS6.x (32bit/64bit) | |
| # Description: Install Shadowsocks-libev server for CentOS 6.X | |
| # Author: Cyanife <[email protected]> | |
| # Note: Modified from tennfy<[email protected]>'s debian script, thanks! | |
| #=============================================================================================== | |
| clear | |
| echo "###################################################################" |
| @ECHO OFF | |
| SETLOCAL | |
| ::Minecraft backup script | |
| ::(ORIGIN)You need to install 7-Zip first. It can be found here: http://www.7-zip.org/ | |
| ::(REMASTARED) Using Bandizip instead. | |
| ::Please check the path section first before running! | |
| ::--------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| ::Path section |
in nginx.conf:
remind that in a nginx docker container 127.0.0.1 or localhost means the container itself.
nginx container consider all other container as individual hosts in the same network.
when a container's internal port is exposed to a host port, the "host" means docker's physical host operation system, not nginx's container!
so we can't use proxy-pass like "proxy-pass : 127.0.0.1:8080" because nginx docker will recognize "127.0.0.1" as itself.
You can add a next field to your form, and set it to request.path. After you processed your form you can redirect to the value of this path.
template.html
<form method="POST">
{% csrf_token %}
{{ form }}
<input type="hidden" name="next" value="{{ request.path }}">
<button type="submit">Let's Go</button>