例如,我有这个混乱的配置:
server {
listen 80 default;
server_name localhost;
location / {
proxy_method $foo;
proxy_pass http://foobar:8080;
}
}
Run Code Online (Sandbox Code Playgroud)
我想让它看起来像:
server
{
listen 80 default;
server_name localhost;
location /
{
proxy_method $foo;
proxy_pass http://foobar:8080;
}
}
Run Code Online (Sandbox Code Playgroud)
如何以更好的方式格式化 Nginx 配置?
当我尝试将工件发布到个人工件存储库时,当我查看存储库时,我注意到已发布的pom不包括该项目所具有的依赖项,您能解释一下我的构建有什么问题吗?
buildscript {
repositories {
jcenter()
}
dependencies {
// Add this line
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.1"
}
}
// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
apply plugin: 'maven'
group 'CaptchaSolving'
version '1.0.0'
sourceCompatibility = 1.5
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
maven { …Run Code Online (Sandbox Code Playgroud)